diff options
author | Eugene Sandulenko | 2017-02-04 17:52:22 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-02-04 17:52:22 +0100 |
commit | a8c9e47d66603275af4c5b5d1b5de85d6cbe7ee9 (patch) | |
tree | 1fa5d86955e043ae0285b2983bc34946b9c7c886 /engines/director | |
parent | 7c616a5737efff23742cd7c1adbdf24e873a04f0 (diff) | |
download | scummvm-rg350-a8c9e47d66603275af4c5b5d1b5de85d6cbe7ee9.tar.gz scummvm-rg350-a8c9e47d66603275af4c5b5d1b5de85d6cbe7ee9.tar.bz2 scummvm-rg350-a8c9e47d66603275af4c5b5d1b5de85d6cbe7ee9.zip |
DIRECTOR: Removed text cast width hack. It is incorrect.
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/frame.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp index 7ea9ec69fc..8992806ea8 100644 --- a/engines/director/frame.cpp +++ b/engines/director/frame.cpp @@ -899,10 +899,10 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteId, Commo if (_vm->getVersion() >= 4 && !isButtonLabel) height = textCast->initialRect.bottom; height += textShadow; - // WORKAROUND: TODO: Check what is the actual size in the original - // 4 is for the horizontal bars space, 1 on the left edge, 2 on the right edge - int width = _sprites[spriteId]->_width - 7; - if (_vm->getVersion() >= 4 && !isButtonLabel) width = textCast->initialRect.right; + int width = _sprites[spriteId]->_width; + + if (_vm->getVersion() >= 4 && !isButtonLabel) + width = textCast->initialRect.right; if (_vm->_currentScore->_fontMap.contains(textCast->fontId)) { // We need to make sure that teh Shared Cast fonts have been loaded in? |