From 01215f45fded700750d8cf0eca7b42924cf45342 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 27 Apr 2024 13:52:38 +0200 Subject: [PATCH] fixed playfield graphics for BD runtime elements in level editor --- src/tools.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tools.c b/src/tools.c index b12c7ea6..ac3d31bf 100644 --- a/src/tools.c +++ b/src/tools.c @@ -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); } } -- 2.34.1