projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45bb92e
)
fixed bug with drawing animations with negative or zero width/height
author
Holger Schemel
<info@artsoft.org>
Sat, 2 Apr 2016 08:13:39 +0000
(10:13 +0200)
committer
Holger Schemel
<info@artsoft.org>
Sat, 2 Apr 2016 08:13:39 +0000
(10:13 +0200)
src/cartoons.c
patch
|
blob
|
history
diff --git
a/src/cartoons.c
b/src/cartoons.c
index 1d17518616808a94cd6b3471c9b5986802172668..e6b622dc94d51197069b3437e868abcca1ddf046 100644
(file)
--- a/
src/cartoons.c
+++ b/
src/cartoons.c
@@
-583,6
+583,9
@@
void DrawGlobalAnimExt(int drawing_stage)
else if (part->y > part->viewport_height - g->height)
height -= (part->y - (part->viewport_height - g->height));
+ if (width <= 0 || height <= 0)
+ continue;
+
dst_x += part->viewport_x;
dst_y += part->viewport_y;