Fix uninitialized img->dirty in TFB_DrawImage_New(), from Louis Delacroix
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3739 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -301,6 +301,7 @@ TFB_DrawImage_New (TFB_Canvas canvas)
|
|||||||
img->last_scale_hs = NullHs;
|
img->last_scale_hs = NullHs;
|
||||||
img->last_scale_type = -1;
|
img->last_scale_type = -1;
|
||||||
img->last_scale = 0;
|
img->last_scale = 0;
|
||||||
|
img->dirty = FALSE;
|
||||||
TFB_DrawCanvas_GetExtent (canvas, &img->extent);
|
TFB_DrawCanvas_GetExtent (canvas, &img->extent);
|
||||||
|
|
||||||
if (TFB_DrawCanvas_IsPaletted (canvas))
|
if (TFB_DrawCanvas_IsPaletted (canvas))
|
||||||
|
|||||||
Reference in New Issue
Block a user