From 133ff34cb4fc6882233cccb40882fc2278558390 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 11 Jan 2005 00:51:58 +0000 Subject: o All fonts were mapped. Introduced new FONT_DONTMAP flag o Implemented and tested converse drawing. Still some features like arrows and hardcoded values are present, and it is not used in scripts svn-id: r16536 --- saga/font.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'saga/font.h') diff --git a/saga/font.h b/saga/font.h index a3aec4b962..8e7947ee3d 100644 --- a/saga/font.h +++ b/saga/font.h @@ -55,11 +55,12 @@ enum FONT_ID { }; enum FONT_EFFECT_FLAGS { - FONT_NORMAL = 0x00, - FONT_OUTLINE = 0x01, - FONT_SHADOW = 0x02, - FONT_BOLD = 0x04, - FONT_CENTERED = 0x08 + FONT_NORMAL = 0, + FONT_OUTLINE = 1 << 0, + FONT_SHADOW = 1 << 1, + FONT_BOLD = 1 << 2, + FONT_CENTERED = 1 << 3, + FONT_DONTMAP = 1 << 4 }; struct FONT_HEADER { @@ -110,7 +111,7 @@ class Font { int loadFont(uint32 font_rn, int font_id); FONT_STYLE *createOutline(FONT_STYLE * src_font); int outFont(FONT_STYLE *font, SURFACE * ds, const char *draw_str, size_t draw_str_ct, - int text_x, int text_y, int color); + int text_x, int text_y, int color, int flags); int getByteLen(int num_bits); static const int _charMap[256]; -- cgit v1.2.3