X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.h;h=b25dc1289a9f02f0ce2835bc9b833791f4a67a32;hb=fe3196f07cb50ffb788c0073b82f94c26f93cfbf;hp=314e07f3fa399654c293c308d19db48489600aab;hpb=e300f91a9ee9f6160aff68d3bc50a21b797d9941;p=rocksndiamonds.git diff --git a/src/libgame/system.h b/src/libgame/system.h index 314e07f3..b25dc128 100644 --- 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_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) @@ -726,7 +728,7 @@ struct SetupEditorInfo boolean el_diamond_caves; boolean el_dx_boulderdash; boolean el_chars; - boolean el_steelchars; + boolean el_steel_chars; boolean el_custom; boolean el_user_defined; boolean el_dynamic; @@ -750,7 +752,7 @@ struct SetupEditorCascadeInfo boolean el_dc; boolean el_dx; boolean el_chars; - boolean el_steelchars; + boolean el_steel_chars; boolean el_ce; boolean el_ge; boolean el_ref; @@ -1008,6 +1010,23 @@ struct Rect 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 */