From 1b6f50f45b969101572b5e92ee8a7b42573bf161 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 6 Nov 2024 20:43:57 +0100 Subject: [PATCH] added function to get background mask for drawing --- src/libgame/system.c | 5 +++++ src/libgame/system.h | 1 + 2 files changed, 6 insertions(+) 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); -- 2.34.1