projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20070124-2-src
[rocksndiamonds.git]
/
src
/
libgame
/
system.h
diff --git
a/src/libgame/system.h
b/src/libgame/system.h
index 9d3e578ab55003c5a23a286161d75f538325aac1..b25dc1289a9f02f0ce2835bc9b833791f4a67a32 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)