projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added grid to (not yet functional) setup screen to configure virtual buttons
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index f9f42fc8d84e8e12463628191103b89b5fd1854c..29c3b24cb6f82df737a596d97b3f27d5b5024f62 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-328,6
+328,8
@@
void InitOverlayInfo()
overlay.enabled = FALSE;
overlay.active = FALSE;
overlay.enabled = FALSE;
overlay.active = FALSE;
+ overlay.show_grid = FALSE;
+
#if defined(PLATFORM_ANDROID)
if (strEqual(setup.touch.control_type, TOUCH_CONTROL_VIRTUAL_BUTTONS))
overlay.enabled = TRUE;
#if defined(PLATFORM_ANDROID)
if (strEqual(setup.touch.control_type, TOUCH_CONTROL_VIRTUAL_BUTTONS))
overlay.enabled = TRUE;
@@
-385,6
+387,16
@@
void SetOverlayActive(boolean active)
overlay.active = active;
}
overlay.active = active;
}
+void SetOverlayShowGrid(boolean show_grid)
+{
+ overlay.show_grid = show_grid;
+
+ SetOverlayActive(show_grid);
+
+ if (show_grid)
+ SetOverlayEnabled(TRUE);
+}
+
boolean GetOverlayActive()
{
return overlay.active;
boolean GetOverlayActive()
{
return overlay.active;