aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/director/frame.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp
index 30be86739c..ec22cc1580 100644
--- a/engines/director/frame.cpp
+++ b/engines/director/frame.cpp
@@ -747,17 +747,14 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteId, Commo
int height = textCast->initialRect.height(); //_sprites[spriteId]->_height;
int width;
- if (_vm->getVersion() >= 4 && textSize != NULL)
- width = textCast->initialRect.right;
- else
- width = textCast->initialRect.width(); //_sprites[spriteId]->_width;
-
if (_vm->getVersion() >= 4) {
if (textSize == NULL)
width = textCast->initialRect.right;
else {
width = textSize->width();
}
+ } else {
+ width = textCast->initialRect.width(); //_sprites[spriteId]->_width;
}
if (_vm->getCurrentScore()->_fontMap.contains(textCast->fontId)) {