From 06d61df3d3dc36a3130d17cc9dad0e12077b8e49 Mon Sep 17 00:00:00 2001 From: avolkov Date: Sun, 8 Jan 2012 04:04:51 +0000 Subject: [PATCH] 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 --- sc2/src/libs/graphics/tfb_draw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sc2/src/libs/graphics/tfb_draw.c b/sc2/src/libs/graphics/tfb_draw.c index fc752ec50..2348e3f2e 100644 --- a/sc2/src/libs/graphics/tfb_draw.c +++ b/sc2/src/libs/graphics/tfb_draw.c @@ -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))