aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2017-02-04 17:52:22 +0100
committerEugene Sandulenko2017-02-04 17:52:22 +0100
commita8c9e47d66603275af4c5b5d1b5de85d6cbe7ee9 (patch)
tree1fa5d86955e043ae0285b2983bc34946b9c7c886 /engines
parent7c616a5737efff23742cd7c1adbdf24e873a04f0 (diff)
downloadscummvm-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')
-rw-r--r--engines/director/frame.cpp8
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?