projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added option to draw virtual buttons outlined
[rocksndiamonds.git]
/
src
/
libgame
/
system.h
diff --git
a/src/libgame/system.h
b/src/libgame/system.h
index 88df586da83d553995800bd2767552197b33418e..3fcdf6c72177e386d8b720072824bf1d9b04ea26 100644
(file)
--- a/
src/libgame/system.h
+++ b/
src/libgame/system.h
@@
-476,9
+476,9
@@
GRID_REAL_HEIGHT), \
MAX_GRID_YSIZE)
GRID_REAL_HEIGHT), \
MAX_GRID_YSIZE)
-#define DEFAULT_GRID_XSIZE(n) (
n
== 0 ? DEFAULT_GRID_XSIZE_0 : \
+#define DEFAULT_GRID_XSIZE(n) (
(n)
== 0 ? DEFAULT_GRID_XSIZE_0 : \
DEFAULT_GRID_XSIZE_1)
DEFAULT_GRID_XSIZE_1)
-#define DEFAULT_GRID_YSIZE(n) (
n
== 0 ? DEFAULT_GRID_YSIZE_0 : \
+#define DEFAULT_GRID_YSIZE(n) (
(n)
== 0 ? DEFAULT_GRID_YSIZE_0 : \
DEFAULT_GRID_YSIZE_1)
#define GRID_ACTIVE_NR() (video.screen_width > \
DEFAULT_GRID_YSIZE_1)
#define GRID_ACTIVE_NR() (video.screen_width > \
@@
-1024,6
+1024,7
@@
struct OverlayInfo
int grid_ysize;
char grid_button[MAX_GRID_XSIZE][MAX_GRID_YSIZE];
int grid_ysize;
char grid_button[MAX_GRID_XSIZE][MAX_GRID_YSIZE];
+
char grid_button_highlight;
};
char grid_button_highlight;
};
@@
-1060,6
+1061,7
@@
struct SetupTouchInfo
char grid_button[2][MAX_GRID_XSIZE][MAX_GRID_YSIZE];
int transparency; /* in percent (0 == opaque, 100 == invisible) */
char grid_button[2][MAX_GRID_XSIZE][MAX_GRID_YSIZE];
int transparency; /* in percent (0 == opaque, 100 == invisible) */
+ boolean draw_outlined;
boolean grid_initialized;
};
boolean grid_initialized;
};