diff options
author | johndoe123 | 2014-12-12 13:12:12 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 9d98f92298c7e0c494b0ae6455a5f0183080db70 (patch) | |
tree | ef54e0d117025bfe315fc858e65b9460a1d31bec /engines/illusions/screen.h | |
parent | 36ec0fafdb186ad55a0d6c08e38b96ef84fa60a8 (diff) | |
download | scummvm-rg350-9d98f92298c7e0c494b0ae6455a5f0183080db70.tar.gz scummvm-rg350-9d98f92298c7e0c494b0ae6455a5f0183080db70.tar.bz2 scummvm-rg350-9d98f92298c7e0c494b0ae6455a5f0183080db70.zip |
ILLUSIONS: Add text drawing to BBDOU
Diffstat (limited to 'engines/illusions/screen.h')
-rw-r--r-- | engines/illusions/screen.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/engines/illusions/screen.h b/engines/illusions/screen.h index 1eef207513..bdb7ea0258 100644 --- a/engines/illusions/screen.h +++ b/engines/illusions/screen.h @@ -122,7 +122,6 @@ public: bool isDisplayOn(); void setDisplayOn(bool isOn); void setScreenOffset(Common::Point offsPt); - uint16 getColorKey2(); void updateSprites(); void clearScreenOffsetAreas(); void decompressSprite(SpriteDecompressQueueItem *item); @@ -135,7 +134,9 @@ public: void updateFaderPalette(); void setFader(int newValue, int firstIndex, int lastIndex); void drawText(FontResource *font, Graphics::Surface *surface, int16 x, int16 y, uint16 *text, uint count); - int16 drawChar(FontResource *font, Graphics::Surface *surface, int16 x, int16 y, uint16 c); + uint16 getColorKey1() const { return _colorKey1; } + void setColorKey1(uint16 colorKey) { _colorKey1 = colorKey; } + uint16 getColorKey2() const { return _colorKey2; } int16 getScreenWidth() const { return _backSurface->w; } int16 getScreenHeight() const { return _backSurface->h; } public: @@ -161,6 +162,12 @@ public: void setSystemPalette(byte *palette); void buildColorTransTbl(); + void drawText8(FontResource *font, Graphics::Surface *surface, int16 x, int16 y, uint16 *text, uint count); + int16 drawChar8(FontResource *font, Graphics::Surface *surface, int16 x, int16 y, uint16 c); + + void drawText16(FontResource *font, Graphics::Surface *surface, int16 x, int16 y, uint16 *text, uint count); + int16 drawChar16(FontResource *font, Graphics::Surface *surface, int16 x, int16 y, uint16 c); + void decompressSprite8(SpriteDecompressQueueItem *item); void drawSurface8(Common::Rect &dstRect, Graphics::Surface *surface, Common::Rect &srcRect, int16 scale, uint32 flags); void drawSurface81(int16 destX, int16 destY, Graphics::Surface *surface, Common::Rect &srcRect); @@ -172,6 +179,8 @@ public: void drawSurface11(int16 destX, int16 destY, Graphics::Surface *surface, Common::Rect &srcRect); void drawSurface20(Common::Rect &dstRect, Graphics::Surface *surface, Common::Rect &srcRect, uint16 colorKey); void drawSurface21(Common::Rect &dstRect, Graphics::Surface *surface, Common::Rect &srcRect); + + uint16 convertFontColor(byte color); }; } // End of namespace Illusions |