s/Palettize/PalettizeToGrayscale/
This commit is contained in:
@@ -158,7 +158,7 @@ void RageBitmapTexture::Create()
|
|||||||
|
|
||||||
if( actualID.iGrayscaleBits != -1 && DISPLAY->SupportsTextureFormat(RageDisplay::FMT_PAL) )
|
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;
|
delete img;
|
||||||
img = dst;
|
img = dst;
|
||||||
|
|||||||
@@ -755,7 +755,7 @@ RageSurface *RageSurfaceUtils::LoadSurface( CString file )
|
|||||||
*
|
*
|
||||||
* This gives us a generic way to handle arbitrary 8-bit texture formats.
|
* 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 );
|
AlphaBits = min( AlphaBits, 8-src_surf->format->Aloss );
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,8 @@ namespace RageSurfaceUtils
|
|||||||
bool SaveSurface( const RageSurface *img, CString file );
|
bool SaveSurface( const RageSurface *img, CString file );
|
||||||
RageSurface *LoadSurface( 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 );
|
RageSurface *MakeDummySurface( int height, int width );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user