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:
avolkov
2012-01-08 04:04:51 +00:00
parent 779b955501
commit 06d61df3d3
+1
View File
@@ -301,6 +301,7 @@ TFB_DrawImage_New (TFB_Canvas canvas)
img->last_scale_hs = NullHs;
img->last_scale_type = -1;
img->last_scale = 0;
img->dirty = FALSE;
TFB_DrawCanvas_GetExtent (canvas, &img->extent);
if (TFB_DrawCanvas_IsPaletted (canvas))