From: Holger Schemel Date: Wed, 6 Nov 2024 19:43:57 +0000 (+0100) Subject: added function to get background mask for drawing X-Git-Tag: 4.4.0.0-test-4~79 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=1b6f50f45b969101572b5e92ee8a7b42573bf161;p=rocksndiamonds.git added function to get background mask for drawing --- diff --git a/src/libgame/system.c b/src/libgame/system.c index e77e6fe6..4ceca3c3 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -453,6 +453,11 @@ void SetDrawBackgroundMask(int draw_background_mask) gfx.draw_background_mask = draw_background_mask; } +int GetDrawBackgroundMask(void) +{ + return gfx.draw_background_mask; +} + void SetBackgroundBitmap(Bitmap *background_bitmap_tile, int mask, int x, int y, int width, int height) { diff --git a/src/libgame/system.h b/src/libgame/system.h index b2fc4d62..16a00b6c 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -1993,6 +1993,7 @@ boolean GetOverlayActive(void); void SetDrawDeactivationMask(int); int GetDrawDeactivationMask(void); void SetDrawBackgroundMask(int); +int GetDrawBackgroundMask(void); void SetBackgroundBitmap(Bitmap *, int, int, int, int, int); void SetRedrawMaskFromArea(int, int, int, int);