small comment/cleanup

This commit is contained in:
AJ Kelly
2010-07-03 18:07:17 -05:00
parent 5c54a7985e
commit b40f144f1a
5 changed files with 128 additions and 135 deletions
+7 -5
View File
@@ -190,7 +190,7 @@ void SetupFormat( RageSurfaceFormat &fmt,
ZERO( fmt.Mask );
ZERO( fmt.Shift );
/* Loss for paletted textures is zero, since the actual palette entries are 8-bit. */
// Loss for paletted textures is zero; the actual palette entries are 8-bit.
ZERO( fmt.Loss );
fmt.palette = new RageSurfacePalette;
@@ -227,10 +227,12 @@ RageSurface *CreateSurface( int width, int height, int BitsPerPixel, uint32_t Rm
pImg->pitch = width*BitsPerPixel/8;
pImg->pixels = new uint8_t[ pImg->pitch*height ];
// if( BitsPerPixel == 8 )
// {
// pImg->fmt.palette = new RageSurfacePalette;
// }
/*
if( BitsPerPixel == 8 )
{
pImg->fmt.palette = new RageSurfacePalette;
}
*/
return pImg;
}