diff --git a/stepmania/src/RageBitmapTexture.cpp b/stepmania/src/RageBitmapTexture.cpp index 0b58b84ecc..05f2bf96be 100644 --- a/stepmania/src/RageBitmapTexture.cpp +++ b/stepmania/src/RageBitmapTexture.cpp @@ -158,7 +158,7 @@ void RageBitmapTexture::Create() if( actualID.iGrayscaleBits != -1 && DISPLAY->SupportsTextureFormat(RageDisplay::FMT_PAL) ) { - RageSurface *dst = RageSurfaceUtils::Palettize( img, actualID.iGrayscaleBits, actualID.iAlphaBits ); + RageSurface *dst = RageSurfaceUtils::PalettizeToGrayscale( img, actualID.iGrayscaleBits, actualID.iAlphaBits ); delete img; img = dst; diff --git a/stepmania/src/RageSurfaceUtils.cpp b/stepmania/src/RageSurfaceUtils.cpp index f3131ad8f0..c6e49a4541 100644 --- a/stepmania/src/RageSurfaceUtils.cpp +++ b/stepmania/src/RageSurfaceUtils.cpp @@ -755,7 +755,7 @@ RageSurface *RageSurfaceUtils::LoadSurface( CString file ) * * This gives us a generic way to handle arbitrary 8-bit texture formats. */ -RageSurface *RageSurfaceUtils::Palettize( const RageSurface *src_surf, int GrayBits, int AlphaBits ) +RageSurface *RageSurfaceUtils::PalettizeToGrayscale( const RageSurface *src_surf, int GrayBits, int AlphaBits ) { AlphaBits = min( AlphaBits, 8-src_surf->format->Aloss ); diff --git a/stepmania/src/RageSurfaceUtils.h b/stepmania/src/RageSurfaceUtils.h index a587400d1e..80378765a4 100644 --- a/stepmania/src/RageSurfaceUtils.h +++ b/stepmania/src/RageSurfaceUtils.h @@ -52,7 +52,8 @@ namespace RageSurfaceUtils bool SaveSurface( const RageSurface *img, CString file ); RageSurface *LoadSurface( CString file ); - RageSurface *Palettize( const RageSurface *src_surf, int GrayBits, int AlphaBits ); + /* Quickly palettize to an gray/alpha texture. */ + RageSurface *PalettizeToGrayscale( const RageSurface *src_surf, int GrayBits, int AlphaBits ); RageSurface *MakeDummySurface( int height, int width );