diff options
author | Nicola Mettifogo | 2008-01-09 22:03:51 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-01-09 22:03:51 +0000 |
commit | 3ed0ddd375edfced81481b5e2013b86009d6c9dd (patch) | |
tree | 5ae3d45a16fb80ea61ceef02621950299491bccd /engines/parallaction/graphics.h | |
parent | 605c9d0fd61a14a6f479c6e1177fa10844f6feff (diff) | |
download | scummvm-rg350-3ed0ddd375edfced81481b5e2013b86009d6c9dd.tar.gz scummvm-rg350-3ed0ddd375edfced81481b5e2013b86009d6c9dd.tar.bz2 scummvm-rg350-3ed0ddd375edfced81481b5e2013b86009d6c9dd.zip |
Refactored some text drawing code.
svn-id: r30362
Diffstat (limited to 'engines/parallaction/graphics.h')
-rw-r--r-- | engines/parallaction/graphics.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/parallaction/graphics.h b/engines/parallaction/graphics.h index 654b76fde9..a9af5e85ab 100644 --- a/engines/parallaction/graphics.h +++ b/engines/parallaction/graphics.h @@ -266,10 +266,8 @@ public: void getStringExtent(char *text, uint16 maxwidth, int16* width, int16* height); // labels - Label *_floatingLabel; void setFloatingLabel(Label *label); Label *renderFloatingLabel(Font *font, char *text); - uint createLabel(Font *font, const char *text, byte color); void showLabel(uint id, int16 x, int16 y); void hideLabel(uint id); @@ -376,6 +374,7 @@ protected: #define MAX_NUM_LABELS 5 Label* _labels[MAX_NUM_LABELS]; uint _numLabels; + Label *_floatingLabel; void drawInventory(); void updateFloatingLabel(); @@ -383,7 +382,6 @@ protected: void drawItems(); void drawBalloons(); - void initBuffers(int w, int h); void freeBuffers(); @@ -392,12 +390,13 @@ protected: int createBalloon(int16 w, int16 h, int16 winding, uint16 borderThickness); Balloon *getBalloon(uint id); + // low level text and patches + void setFont(Font* font); void drawText(Graphics::Surface* surf, uint16 x, uint16 y, const char *text, byte color); bool drawWrappedText(Graphics::Surface* surf, char *text, byte color, int16 wrapwidth); + void blit(const Common::Rect& r, uint16 z, byte *data, Graphics::Surface *surf); void flatBlit(const Common::Rect& r, byte *data, Graphics::Surface *surf, byte transparentColor); - void setFont(Font* font); - }; |