diff --git a/stepmania/src/RageTypes.h b/stepmania/src/RageTypes.h index 7997c0c8f8..333d14ec68 100644 --- a/stepmania/src/RageTypes.h +++ b/stepmania/src/RageTypes.h @@ -262,4 +262,6 @@ public: float m[4][4]; }; +RageColor scale( float x, float l1, float h1, const RageColor &a, const RageColor &b ); + #endif diff --git a/stepmania/src/Sprite.cpp b/stepmania/src/Sprite.cpp index d4b49b676f..050069e9bd 100644 --- a/stepmania/src/Sprite.cpp +++ b/stepmania/src/Sprite.cpp @@ -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( SCALE( x, l1, h1, a.r, b.r ),