fixed playfield graphics for BD runtime elements in level editor
authorHolger Schemel <info@artsoft.org>
Sat, 27 Apr 2024 11:52:38 +0000 (13:52 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 27 Apr 2024 11:52:40 +0000 (13:52 +0200)
src/tools.c

index b12c7ea62cbdc5a7b48b28d2dc55a14ef1d7e551..ac3d31bf9405b406391c255b3f5f9cf8ffbcfc91 100644 (file)
@@ -2818,12 +2818,14 @@ static void DrawSizedElementExt(int x, int y, int element, int tilesize,
   }
   else
   {
-    int graphic = el2edimg(element);
+    int graphic, frame;
+
+    el2edimg_with_frame(element, &graphic, &frame);
 
     if (masked)
-      DrawSizedGraphicThruMask(x, y, graphic, 0, tilesize);
+      DrawSizedGraphicThruMask(x, y, graphic, frame, tilesize);
     else
-      DrawSizedGraphic(x, y, graphic, 0, tilesize);
+      DrawSizedGraphic(x, y, graphic, frame, tilesize);
   }
 }