s/Palettize/PalettizeToGrayscale/

This commit is contained in:
Glenn Maynard
2004-09-04 04:10:56 +00:00
parent 1b174cb718
commit 8879e7c2f1
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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 );
+2 -1
View File
@@ -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 );