diff options
author | Filippos Karapetis | 2011-10-28 22:04:27 +0300 |
---|---|---|
committer | Filippos Karapetis | 2011-10-28 22:20:32 +0300 |
commit | 1ee923f8d271d019336dbdff0516f814898eee22 (patch) | |
tree | 8905644a81420e993f8ae7ec4c505c452a04b76f /engines/sci/graphics | |
parent | f61ea4c9cfae34cb1966cc2664c326d035ac79ad (diff) | |
download | scummvm-rg350-1ee923f8d271d019336dbdff0516f814898eee22.tar.gz scummvm-rg350-1ee923f8d271d019336dbdff0516f814898eee22.tar.bz2 scummvm-rg350-1ee923f8d271d019336dbdff0516f814898eee22.zip |
SCI: Draw overlay text, if it exists (e.g. on buttons)
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/frameout.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp index a41efd6a9f..19cbbd1e01 100644 --- a/engines/sci/graphics/frameout.cpp +++ b/engines/sci/graphics/frameout.cpp @@ -581,6 +581,11 @@ void GfxFrameout::kernelFrameout() { else view->drawScaled(itemEntry->celRect, clipRect, translatedClipRect, itemEntry->loopNo, itemEntry->celNo, 255, itemEntry->scaleX, itemEntry->scaleY); } + + // Draw overlay text, if it exists (e.g. on buttons) + if (lookupSelector(_segMan, itemEntry->object, SELECTOR(text), NULL, NULL) == kSelectorVariable) { + g_sci->_gfxText32->drawTextBitmap(itemEntry->object); + } } else { // Most likely a text entry if (lookupSelector(_segMan, itemEntry->object, SELECTOR(text), NULL, NULL) == kSelectorVariable) { @@ -602,4 +607,4 @@ void GfxFrameout::kernelFrameout() { g_sci->getEngineState()->_throttleTrigger = true; } -} // End of namespace Sci +} // End of namespace Sci
\ No newline at end of file |