added function for getting current draw deactivation mask
authorHolger Schemel <info@artsoft.org>
Sat, 7 Oct 2017 21:02:22 +0000 (23:02 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 7 Oct 2017 21:02:22 +0000 (23:02 +0200)
src/libgame/system.c
src/libgame/system.h

index 4d4c448f486755e90a03f97dcc6608d1d3ef1793..a10016dc94f8e69967b0a950a536f3d217e76739 100644 (file)
@@ -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;
index 2f6c2809fff688814c214e9030b4975d5e5e3f16..bec4097365c6afe914b1c9a39dc0a51868787fef 100644 (file)
@@ -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 *);