projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added API functions to get score tape from score server
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index 144bce2afeb7dc36852b81bc32cb66192fe3b405..bde987901f8b4181c824ae673faa4cde114aea90 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-512,6
+512,10
@@
static void DrawMaskedBorderExt_Rect(int x, int y, int width, int height,
Bitmap *src_bitmap = getGlobalBorderBitmapFromStatus(global.border_status);
Bitmap *dst_bitmap = gfx.masked_border_bitmap_ptr;
Bitmap *src_bitmap = getGlobalBorderBitmapFromStatus(global.border_status);
Bitmap *dst_bitmap = gfx.masked_border_bitmap_ptr;
+ // may happen for "border.draw_masked.*" with undefined "global.border.*"
+ if (src_bitmap == NULL)
+ return;
+
if (x == -1 && y == -1)
return;
if (x == -1 && y == -1)
return;
@@
-2523,6
+2527,11
@@
void DrawScreenGraphic(int x, int y, int graphic, int frame)
}
}
}
}
+void DrawLevelGraphic(int x, int y, int graphic, int frame)
+{
+ DrawScreenGraphic(SCREENX(x), SCREENY(y), graphic, frame);
+}
+
void DrawScreenElement(int x, int y, int element)
{
int mask_mode = NO_MASKING;
void DrawScreenElement(int x, int y, int element)
{
int mask_mode = NO_MASKING;