projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added separate grid buttons for landscape and portrait screen orientation
[rocksndiamonds.git]
/
src
/
screens.c
diff --git
a/src/screens.c
b/src/screens.c
index 1444fe8be075de897b9e91c869047097f903bf2f..3dd571fe857cb912493d9dc0105a0a559103d2fe 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-7206,6
+7206,7
@@
boolean ConfigureVirtualButtonsMain()
char grid_button_old[MAX_GRID_XSIZE][MAX_GRID_YSIZE];
char grid_button_tmp[MAX_GRID_XSIZE][MAX_GRID_YSIZE];
boolean set_grid_button = FALSE;
char grid_button_old[MAX_GRID_XSIZE][MAX_GRID_YSIZE];
char grid_button_tmp[MAX_GRID_XSIZE][MAX_GRID_YSIZE];
boolean set_grid_button = FALSE;
+ int nr = GRID_ACTIVE_NR();
int x, y;
for (x = 0; x < MAX_GRID_XSIZE; x++)
int x, y;
for (x = 0; x < MAX_GRID_XSIZE; x++)
@@
-7369,6
+7370,10
@@
boolean ConfigureVirtualButtonsMain()
BackToFront();
}
BackToFront();
}
+ for (x = 0; x < MAX_GRID_XSIZE; x++)
+ for (y = 0; y < MAX_GRID_YSIZE; y++)
+ overlay.grid_button_all[nr][x][y] = overlay.grid_button[x][y];
+
overlay.grid_button_highlight = CHAR_GRID_BUTTON_NONE;
SetOverlayShowGrid(FALSE);
overlay.grid_button_highlight = CHAR_GRID_BUTTON_NONE;
SetOverlayShowGrid(FALSE);