X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsystem.h;h=6fa176b434bcdbbe1f4b76ab5102d555fbc7639d;hp=6a50cea025ebab4399e7c1b9b4f583d3195fa6f3;hb=1786288765edb99711ec0eb06520969879d62cc2;hpb=d6d1c9d93fa318a7e49304f008dd6a965a5dc48c diff --git a/src/libgame/system.h b/src/libgame/system.h index 6a50cea0..6fa176b4 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -194,10 +194,21 @@ /* values for special (non game element) animation modes */ #define ANIM_HORIZONTAL (1 << 10) #define ANIM_VERTICAL (1 << 11) -#define ANIM_STATIC_PANEL (1 << 12) +#define ANIM_CENTERED (1 << 12) +#define ANIM_STATIC_PANEL (1 << 13) #define ANIM_DEFAULT ANIM_LOOP +/* values for text alignment */ +#define ALIGN_LEFT (1 << 0) +#define ALIGN_RIGHT (1 << 1) +#define ALIGN_CENTER (1 << 2) + +#define ALIGN_DEFAULT ALIGN_LEFT + +#define ALIGNED_XPOS(x,w,a) ((a) == ALIGN_CENTER ? (x) - (w) / 2 : \ + (a) == ALIGN_RIGHT ? (x) - (w) : (x)) + /* values for redraw_mask */ #define REDRAW_NONE (0) #define REDRAW_ALL (1 << 0)