diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-08-10 21:51:05 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-08-10 22:28:15 -0400 |
| commit | 4129cdeb4d1e3969aba64cf2dad25b3864eedccb (patch) | |
| tree | 3cc91829e2f60f4dbab5c16b6b026f045ef87aee /Source/Core/VideoBackends/Software/TransformUnit.cpp | |
| parent | 568bdec5983a419dd06e9e497ec43d04677bc2df (diff) | |
Software: Apply static to some functions
Diffstat (limited to 'Source/Core/VideoBackends/Software/TransformUnit.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/TransformUnit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/Software/TransformUnit.cpp b/Source/Core/VideoBackends/Software/TransformUnit.cpp index bb2b50ad41..0c667313bc 100644 --- a/Source/Core/VideoBackends/Software/TransformUnit.cpp +++ b/Source/Core/VideoBackends/Software/TransformUnit.cpp @@ -189,21 +189,21 @@ struct LightPointer Vec3 dir; }; -inline void AddIntegerColor(const u8 *src, Vec3 &dst) +static inline void AddIntegerColor(const u8 *src, Vec3 &dst) { dst.x += src[1]; dst.y += src[2]; dst.z += src[3]; } -inline void AddScaledIntegerColor(const u8 *src, float scale, Vec3 &dst) +static inline void AddScaledIntegerColor(const u8 *src, float scale, Vec3 &dst) { dst.x += src[1] * scale; dst.y += src[2] * scale; dst.z += src[3] * scale; } -inline float SafeDivide(float n, float d) +static inline float SafeDivide(float n, float d) { return (d==0) ? (n>0?1:0) : n/d; } |
