make scale(RageColor) available

This commit is contained in:
Glenn Maynard
2004-03-06 07:20:21 +00:00
parent d5dfc14f48
commit 330ba5ab27
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -262,4 +262,6 @@ public:
float m[4][4]; float m[4][4];
}; };
RageColor scale( float x, float l1, float h1, const RageColor &a, const RageColor &b );
#endif #endif
+2 -1
View File
@@ -426,7 +426,8 @@ void Sprite::DrawTexture( const TweenState *state )
} }
} }
static RageColor scale( float x, float l1, float h1, const RageColor &a, const RageColor &b ) /* XXX: move to RageTypes.cpp */
RageColor scale( float x, float l1, float h1, const RageColor &a, const RageColor &b )
{ {
return RageColor( return RageColor(
SCALE( x, l1, h1, a.r, b.r ), SCALE( x, l1, h1, a.r, b.r ),