From 876512ef6e652770827ea353dbf2a0cdfab5ae91 Mon Sep 17 00:00:00 2001 From: gewlitys Date: Sat, 8 Mar 2003 20:16:22 +0000 Subject: [PATCH] Initial ScaledImg creation is now forced even if caching thinks it's not needed; fixes melee crashes. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@879 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/graphics/tfb_draw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sc2/src/sc2code/libs/graphics/tfb_draw.c b/sc2/src/sc2code/libs/graphics/tfb_draw.c index 892d64541..a7011e025 100644 --- a/sc2/src/sc2code/libs/graphics/tfb_draw.c +++ b/sc2/src/sc2code/libs/graphics/tfb_draw.c @@ -298,7 +298,8 @@ TFB_DrawImage_FixScaling (TFB_Image *image, int target) EXTENT old = image->extent; TFB_DrawCanvas_GetScaledExtent (image->NormalImg, target, &image->extent); - if ((old.width != image->extent.width) || (old.height != image->extent.height) || image->dirty) + if ((old.width != image->extent.width) || (old.height != image->extent.height) || + image->dirty || !image->ScaledImg) { image->dirty = FALSE; if (!image->ScaledImg)