From: Holger Schemel Date: Sat, 27 Apr 2024 11:52:38 +0000 (+0200) Subject: fixed playfield graphics for BD runtime elements in level editor X-Git-Tag: 4.4.0.0-test-1~29 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=01215f45fded700750d8cf0eca7b42924cf45342;p=rocksndiamonds.git fixed playfield graphics for BD runtime elements in level editor --- 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); } }