Cleanup: removed unused TFB_Image.Palette

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3439 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2009-12-18 23:18:28 +00:00
parent e991a294a9
commit 08c678908c
2 changed files with 1 additions and 8 deletions
+1 -7
View File
@@ -299,9 +299,7 @@ TFB_DrawImage_New (TFB_Canvas canvas)
img->last_scale = 0;
TFB_DrawCanvas_GetExtent (canvas, &img->extent);
img->Palette = TFB_DrawCanvas_ExtractPalette (canvas);
if (img->Palette)
if (TFB_DrawCanvas_IsPaletted (canvas))
{
img->NormalImg = canvas;
}
@@ -328,7 +326,6 @@ TFB_DrawImage_CreateForScreen (int w, int h, BOOLEAN withalpha)
img->last_scale_hs = NullHs;
img->last_scale_type = -1;
img->last_scale = 0;
img->Palette = NULL;
img->extent.width = w;
img->extent.height = h;
@@ -417,9 +414,6 @@ TFB_DrawImage_Delete (TFB_Image *image)
TFB_DrawCanvas_Delete (image->ScaledImg);
}
if (image->Palette)
HFree (image->Palette);
UnlockMutex (image->mutex);
DestroyMutex (image->mutex);
-1
View File
@@ -41,7 +41,6 @@ typedef struct tfb_image
TFB_Canvas ScaledImg;
TFB_Canvas MipmapImg;
TFB_Canvas FilledImg;
Color *Palette;
int colormap_index;
int colormap_version;
HOT_SPOT NormalHs;