projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5934610
)
fixed playfield graphics for BD runtime elements in level editor
author
Holger Schemel
<info@artsoft.org>
Sat, 27 Apr 2024 11:52:38 +0000
(13:52 +0200)
committer
Holger Schemel
<info@artsoft.org>
Sat, 27 Apr 2024 11:52:40 +0000
(13:52 +0200)
src/tools.c
patch
|
blob
|
history
diff --git
a/src/tools.c
b/src/tools.c
index b12c7ea62cbdc5a7b48b28d2dc55a14ef1d7e551..ac3d31bf9405b406391c255b3f5f9cf8ffbcfc91 100644
(file)
--- 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);
}
}