diff options
author | Gregory Montoir | 2004-01-09 13:36:37 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-01-09 13:36:37 +0000 |
commit | 634df6923d644a5de603beb14c5f9720b5ff44fb (patch) | |
tree | b44aebd45f697dfe1c448ee460f204e2fa7945ac /queen/display.h | |
parent | 93f3c0df348b77d284d66309e36d775df4765c99 (diff) | |
download | scummvm-rg350-634df6923d644a5de603beb14c5f9720b5ff44fb.tar.gz scummvm-rg350-634df6923d644a5de603beb14c5f9720b5ff44fb.tar.bz2 scummvm-rg350-634df6923d644a5de603beb14c5f9720b5ff44fb.zip |
renamed some methods and moved some code to Display
svn-id: r12276
Diffstat (limited to 'queen/display.h')
-rw-r--r-- | queen/display.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/queen/display.h b/queen/display.h index aef8b0db72..a22dd4e355 100644 --- a/queen/display.h +++ b/queen/display.h @@ -22,6 +22,7 @@ #ifndef QUEENDISPLAY_H #define QUEENDISPLAY_H +#include "common/str.h" #include "common/util.h" #include "queen/defs.h" @@ -89,6 +90,13 @@ public: void initFont(); + void setText(uint16 x, uint16 y, const char *text, bool outlined = true); + void setTextCentered(uint16 y, const char *text, bool outlined = true); + void drawTexts(); + void clearTexts(uint16 y1, uint16 y2); + void textCurrentColor(uint8 color) { _curTextColor = color; } + void textColor(uint16 y, uint8 color) { _texts[y].color = color; } + int textCenterX(const char *text) const; uint16 textWidth(const char *text) const; void drawChar(uint16 x, uint16 y, uint8 color, const uint8 *chr); void drawText(uint16 x, uint16 y, uint8 color, const char *text, bool outlined = true); @@ -132,6 +140,13 @@ private: uint8 prevColMask; }; + struct TextSlot { + uint16 x; + uint8 color; + Common::String text; + bool outlined; + }; + uint8 *_screenBuf; uint8 *_panelBuf; uint8 *_backdropBuf; @@ -145,6 +160,9 @@ private: uint16 _horizontalScroll; uint16 _bdWidth, _bdHeight; + TextSlot _texts[GAME_SCREEN_HEIGHT]; + uint8 _curTextColor; + uint8 _charWidth[256]; bool _gotTick; |