fixed bug with not scaling images despite using option ".scale_up_factor"
authorHolger Schemel <info@artsoft.org>
Sun, 5 Feb 2023 10:58:31 +0000 (11:58 +0100)
committerHolger Schemel <info@artsoft.org>
Sun, 5 Feb 2023 10:58:51 +0000 (11:58 +0100)
src/libgame/image.c

index e182a495fd7c524b4719761c3457ecdc4093fac2..4cc613e70062f8031c7703b7fbde5218b664f3dd 100644 (file)
@@ -391,9 +391,11 @@ void ScaleImage(int pos, int zoom_factor)
     return;
 
   if (zoom_factor != 1)
+  {
     ScaleBitmap(img_info->bitmaps, zoom_factor);
 
-  img_info->scaled_up = TRUE;
+    img_info->scaled_up = TRUE;
+  }
 }
 
 void FreeAllImages(void)