From: Holger Schemel Date: Sat, 7 Oct 2017 21:02:22 +0000 (+0200) Subject: added function for getting current draw deactivation mask X-Git-Tag: 4.0.1.1~41 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b8f99b63bf8c0ba0fefe2889c85feb4d46646e88;p=rocksndiamonds.git added function for getting current draw deactivation mask --- diff --git a/src/libgame/system.c b/src/libgame/system.c index 4d4c448f..a10016dc 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -329,6 +329,11 @@ void SetDrawDeactivationMask(int draw_deactivation_mask) gfx.draw_deactivation_mask = draw_deactivation_mask; } +int GetDrawDeactivationMask() +{ + return gfx.draw_deactivation_mask; +} + void SetDrawBackgroundMask(int draw_background_mask) { gfx.draw_background_mask = draw_background_mask; diff --git a/src/libgame/system.h b/src/libgame/system.h index 2f6c2809..bec40973 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -1476,6 +1476,7 @@ void SetOverlayEnabled(boolean); void SetOverlayActive(boolean); boolean GetOverlayActive(); void SetDrawDeactivationMask(int); +int GetDrawDeactivationMask(void); void SetDrawBackgroundMask(int); void SetWindowBackgroundBitmap(Bitmap *); void SetMainBackgroundBitmap(Bitmap *);