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
This commit is contained in:
gewlitys
2003-03-08 20:16:22 +00:00
parent e2e09d31e7
commit 876512ef6e
+2 -1
View File
@@ -298,7 +298,8 @@ TFB_DrawImage_FixScaling (TFB_Image *image, int target)
EXTENT old = image->extent; EXTENT old = image->extent;
TFB_DrawCanvas_GetScaledExtent (image->NormalImg, target, &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; image->dirty = FALSE;
if (!image->ScaledImg) if (!image->ScaledImg)