projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20070207-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
system.h
diff --git
a/src/libgame/system.h
b/src/libgame/system.h
index 0f6f06562203f7f528b35f9086c62c834485135d..fcb2034b7a7f015fb62b58f444dca3329c948c82 100644
(file)
--- a/
src/libgame/system.h
+++ b/
src/libgame/system.h
@@
-210,6
+210,8
@@
#define ALIGNED_XPOS(x,w,a) ((a) == ALIGN_CENTER ? (x) - (w) / 2 : \
(a) == ALIGN_RIGHT ? (x) - (w) : (x))
#define ALIGNED_XPOS(x,w,a) ((a) == ALIGN_CENTER ? (x) - (w) / 2 : \
(a) == ALIGN_RIGHT ? (x) - (w) : (x))
+#define ALIGNED_MENU_XPOS(p) ALIGNED_XPOS((p)->x, (p)->width, (p)->align)
+#define ALIGNED_MENU_YPOS(p) ((p)->y)
/* values for redraw_mask */
#define REDRAW_NONE (0)
/* values for redraw_mask */
#define REDRAW_NONE (0)
@@
-802,6
+804,7
@@
struct SetupInfo
boolean quick_switch;
boolean input_on_focus;
boolean prefer_aga_graphics;
boolean quick_switch;
boolean input_on_focus;
boolean prefer_aga_graphics;
+ int game_frame_delay;
char *graphics_set;
char *sounds_set;
char *graphics_set;
char *sounds_set;
@@
-1008,6
+1011,23
@@
struct Rect
int width, height;
};
int width, height;
};
+#if 1
+struct MenuPosInfo
+{
+ int x, y;
+ int width, height;
+ int align;
+};
+
+struct TextPosInfo
+{
+ int x, y;
+ int width, height;
+ int align;
+ int chars;
+};
+#endif
+
/* ========================================================================= */
/* exported variables */
/* ========================================================================= */
/* exported variables */