X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=ac3d31bf9405b406391c255b3f5f9cf8ffbcfc91;hb=01215f45fded700750d8cf0eca7b42924cf45342;hp=b12c7ea62cbdc5a7b48b28d2dc55a14ef1d7e551;hpb=5934610dc0048580758ec4b9c2d2a9c75e3a2615;p=rocksndiamonds.git 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); } }