X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsystem.h;h=2f7c2bf61c42045463431d28355c48da02e94476;hp=b82b7e8acc5655fd2d644e9f572caee7118dff46;hb=063fcfffebc7960fedb0e468a6b20821e387d403;hpb=f0b6179ac5fd4ff548d4263488373408f92874e8 diff --git a/src/libgame/system.h b/src/libgame/system.h index b82b7e8a..2f7c2bf6 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -413,6 +413,8 @@ (v) == VALIGN_BOTTOM ? (y) - (h) : (y)) #define ALIGNED_TEXT_XPOS(p) ALIGNED_XPOS((p)->x, (p)->width, (p)->align) #define ALIGNED_TEXT_YPOS(p) ALIGNED_YPOS((p)->y, (p)->height, (p)->valign) +#define ALIGNED_VP_XPOS(p) ALIGNED_TEXT_XPOS(p) +#define ALIGNED_VP_YPOS(p) ALIGNED_TEXT_YPOS(p) // values for redraw_mask #define REDRAW_NONE (0) @@ -1533,7 +1535,19 @@ struct RectWithBorder { int x, y; int width, height; + int min_width, min_height; + int max_width, max_height; + int margin_left; + int margin_right; + int margin_top; + int margin_bottom; + int border_left; + int border_right; + int border_top; + int border_bottom; int border_size; + int align_size; + int align, valign; }; struct MenuPosInfo