diff options
author | Martin Kiewitz | 2010-06-15 13:01:07 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-06-15 13:01:07 +0000 |
commit | 891b568fde51c7f1732c86fd34cc40efcd4314ce (patch) | |
tree | 7eabcb3211243df20bc292970701f593f7b82a64 /engines/sci/graphics/gui.cpp | |
parent | 604f85588965498f7852b579e19a9f6e99d32590 (diff) | |
download | scummvm-rg350-891b568fde51c7f1732c86fd34cc40efcd4314ce.tar.gz scummvm-rg350-891b568fde51c7f1732c86fd34cc40efcd4314ce.tar.bz2 scummvm-rg350-891b568fde51c7f1732c86fd34cc40efcd4314ce.zip |
SCI: move textSize and textFonts and textColors inside gfxText16
svn-id: r49851
Diffstat (limited to 'engines/sci/graphics/gui.cpp')
-rw-r--r-- | engines/sci/graphics/gui.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/engines/sci/graphics/gui.cpp b/engines/sci/graphics/gui.cpp index 468fbed776..847831c909 100644 --- a/engines/sci/graphics/gui.cpp +++ b/engines/sci/graphics/gui.cpp @@ -68,6 +68,7 @@ SciGui::SciGui(EngineState *state, GfxScreen *screen, GfxPalette *palette, GfxCa _animate = new GfxAnimate(_s, _cache, _ports, _paint16, _screen, _palette, _cursor, _transitions); g_sci->_gfxAnimate = _animate; _text16 = new GfxText16(g_sci->getResMan(), _cache, _ports, _paint16, _screen); + g_sci->_gfxText16 = _text16; _controls = new GfxControls(_s->_segMan, _ports, _paint16, _text16, _screen); g_sci->_gfxControls = _controls; _menu = new GfxMenu(g_sci->getEventManager(), _s->_segMan, this, _ports, _paint16, _text16, _screen, _cursor); @@ -94,21 +95,4 @@ void SciGui::wait(int16 ticks) { _s->wait(ticks); } -void SciGui::textSize(const char *text, int16 font, int16 maxWidth, int16 *textWidth, int16 *textHeight) { - Common::Rect rect(0, 0, *textWidth, *textHeight); - _text16->Size(rect, text, font, maxWidth); - *textWidth = rect.width(); - *textHeight = rect.height(); -} - -// Used SCI1+ for text codes -void SciGui::textFonts(int argc, reg_t *argv) { - _text16->CodeSetFonts(argc, argv); -} - -// Used SCI1+ for text codes -void SciGui::textColors(int argc, reg_t *argv) { - _text16->CodeSetColors(argc, argv); -} - } // End of namespace Sci |