projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d1ed92
)
fixed bug with drawing masked borders for off-screen viewports
author
Holger Schemel
<info@artsoft.org>
Sat, 19 Mar 2016 21:18:18 +0000
(22:18 +0100)
committer
Holger Schemel
<info@artsoft.org>
Sat, 19 Mar 2016 21:18:18 +0000
(22:18 +0100)
src/tools.c
patch
|
blob
|
history
diff --git
a/src/tools.c
b/src/tools.c
index f1aa666e8004c9332f2a79579c903c7c59957a4d..2a36ee412fb7e5ceb7f43f8fb096da4f6b3b10a9 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-293,6
+293,9
@@
static void DrawMaskedBorderExt_Rect(int x, int y, int width, int height,
{
Bitmap *bitmap = getGlobalBorderBitmapFromGameStatus();
+ if (x == -1 && y == -1)
+ return;
+
if (blit_to_screen)
BlitToScreenMasked(bitmap, x, y, width, height, x, y);
else