diff options
author | Eugene Sandulenko | 2005-01-11 00:51:58 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-01-11 00:51:58 +0000 |
commit | 133ff34cb4fc6882233cccb40882fc2278558390 (patch) | |
tree | 7a974302e09fa9bd6264a4b60a53be76a137a730 /saga/font.h | |
parent | 2dd88384a17059cd418bc9a96eddf05fdae20cfa (diff) | |
download | scummvm-rg350-133ff34cb4fc6882233cccb40882fc2278558390.tar.gz scummvm-rg350-133ff34cb4fc6882233cccb40882fc2278558390.tar.bz2 scummvm-rg350-133ff34cb4fc6882233cccb40882fc2278558390.zip |
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
Diffstat (limited to 'saga/font.h')
-rw-r--r-- | saga/font.h | 13 |
1 files changed, 7 insertions, 6 deletions
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]; |