From a8c9e47d66603275af4c5b5d1b5de85d6cbe7ee9 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 4 Feb 2017 17:52:22 +0100 Subject: DIRECTOR: Removed text cast width hack. It is incorrect. --- engines/director/frame.cpp | 8 ++++---- 1 file 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? -- cgit v1.2.3