diff options
author | Filippos Karapetis | 2011-10-29 01:39:37 +0300 |
---|---|---|
committer | Filippos Karapetis | 2011-10-29 01:39:37 +0300 |
commit | ec7b5a79c2902a5a0cf884c02f0c34a4150c2e9f (patch) | |
tree | 11c5d405774a5eb5987816b8503280758dac66c5 /engines/sci/graphics/text32.h | |
parent | 1cc30572e6807a701a560a7a79d2637bb14e1439 (diff) | |
download | scummvm-rg350-ec7b5a79c2902a5a0cf884c02f0c34a4150c2e9f.tar.gz scummvm-rg350-ec7b5a79c2902a5a0cf884c02f0c34a4150c2e9f.tar.bz2 scummvm-rg350-ec7b5a79c2902a5a0cf884c02f0c34a4150c2e9f.zip |
SCI: Some fixes for text positioning in SCI32 games (still WIP)
Also, removed duplicate code
Diffstat (limited to 'engines/sci/graphics/text32.h')
-rw-r--r-- | engines/sci/graphics/text32.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sci/graphics/text32.h b/engines/sci/graphics/text32.h index dfcbf63ccf..d39f0d8d87 100644 --- a/engines/sci/graphics/text32.h +++ b/engines/sci/graphics/text32.h @@ -37,7 +37,7 @@ public: ~GfxText32(); reg_t createTextBitmap(reg_t textObject, uint16 maxWidth = 0, uint16 maxHeight = 0); void disposeTextBitmap(reg_t hunkId); - void drawTextBitmap(reg_t textObject); + void drawTextBitmap(uint16 x, uint16 y, Common::Rect planeRect, reg_t textObject); int16 GetLongest(const char *text, int16 maxWidth, GfxFont *font); void kernelTextSize(const char *text, int16 font, int16 maxWidth, int16 *textWidth, int16 *textHeight); @@ -46,7 +46,6 @@ private: int16 Size(Common::Rect &rect, const char *text, GuiResourceId fontId, int16 maxWidth); void Width(const char *text, int16 from, int16 len, GuiResourceId orgFontId, int16 &textWidth, int16 &textHeight, bool restoreFont); void StringWidth(const char *str, GuiResourceId orgFontId, int16 &textWidth, int16 &textHeight); - Common::Rect getPlaneRect(reg_t textObject); SegManager *_segMan; GfxCache *_cache; |