summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/TransformUnit.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-08-10 21:51:05 -0400
committerLioncash <mathew1800@gmail.com>2014-08-10 22:28:15 -0400
commit4129cdeb4d1e3969aba64cf2dad25b3864eedccb (patch)
tree3cc91829e2f60f4dbab5c16b6b026f045ef87aee /Source/Core/VideoBackends/Software/TransformUnit.cpp
parent568bdec5983a419dd06e9e497ec43d04677bc2df (diff)
Software: Apply static to some functions
Diffstat (limited to 'Source/Core/VideoBackends/Software/TransformUnit.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/TransformUnit.cpp6
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;
}