diff options
author | stevenhoefel | 2017-03-03 15:20:59 +1100 |
---|---|---|
committer | stevenhoefel | 2017-03-03 15:20:59 +1100 |
commit | aafd10d3d1e807b21e064a2be65e85311ed9cc30 (patch) | |
tree | 487900a7ad75c8bdc700a07571ef921b0f47ba35 /engines/director/frame.cpp | |
parent | 64b970ef64992231f7cccf12b9c5e162c39b2d5f (diff) | |
download | scummvm-rg350-aafd10d3d1e807b21e064a2be65e85311ed9cc30.tar.gz scummvm-rg350-aafd10d3d1e807b21e064a2be65e85311ed9cc30.tar.bz2 scummvm-rg350-aafd10d3d1e807b21e064a2be65e85311ed9cc30.zip |
DIRECTOR: Correctly return TextCast rectangle for D2/3.
Diffstat (limited to 'engines/director/frame.cpp')
-rw-r--r-- | engines/director/frame.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp index df03f998cd..50627d6d16 100644 --- a/engines/director/frame.cpp +++ b/engines/director/frame.cpp @@ -906,8 +906,8 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteId, Commo int x = _sprites[spriteId]->_startPoint.x; // +rectLeft; int y = _sprites[spriteId]->_startPoint.y; // +rectTop; - int height = _sprites[spriteId]->_height; - int width = _sprites[spriteId]->_width; + int height = _sprites[spriteId]->_cast->initialRect.height(); //_sprites[spriteId]->_height; + int width = _sprites[spriteId]->_cast->initialRect.width(); //_sprites[spriteId]->_width; if (_vm->getVersion() >= 4 && textSize != NULL) width = textCast->initialRect.right; |