diff options
author | Eugene Sandulenko | 2017-02-04 16:43:57 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-02-04 16:43:57 +0100 |
commit | 7c616a5737efff23742cd7c1adbdf24e873a04f0 (patch) | |
tree | 6fad2bdbbd5f266d2c7cf7bbdbcaea76cdf3d698 /engines/director | |
parent | bbb3c5ae9a876fed7faabb599273d5d4e789ffab (diff) | |
download | scummvm-rg350-7c616a5737efff23742cd7c1adbdf24e873a04f0.tar.gz scummvm-rg350-7c616a5737efff23742cd7c1adbdf24e873a04f0.tar.bz2 scummvm-rg350-7c616a5737efff23742cd7c1adbdf24e873a04f0.zip |
DIRECTOR: Added workaround for Text Cast width
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/frame.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp index 693e477ab0..7ea9ec69fc 100644 --- a/engines/director/frame.cpp +++ b/engines/director/frame.cpp @@ -899,7 +899,9 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteId, Commo if (_vm->getVersion() >= 4 && !isButtonLabel) height = textCast->initialRect.bottom; height += textShadow; - int width = _sprites[spriteId]->_width; + // 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; if (_vm->_currentScore->_fontMap.contains(textCast->fontId)) { |