From 010d12ace83d79d17b4a8f81fb39ed19e7036f5a Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 19 Oct 2011 23:52:16 +0300 Subject: [PATCH] SCI: Moved the width adjustment outside getPlaneRect() --- engines/sci/graphics/text32.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engines/sci/graphics/text32.cpp b/engines/sci/graphics/text32.cpp index 4890262d943..029030165db 100644 --- a/engines/sci/graphics/text32.cpp +++ b/engines/sci/graphics/text32.cpp @@ -63,8 +63,8 @@ reg_t GfxText32::createTextBitmap(reg_t textObject, uint16 maxWidth, uint16 maxH uint16 foreColor = readSelectorValue(_segMan, textObject, SELECTOR(fore)); Common::Rect planeRect = getPlaneRect(textObject); - uint16 width = planeRect.width(); - uint16 height = planeRect.height(); + uint16 width = planeRect.width() + 1; + uint16 height = planeRect.height() + 1; // Limit rectangle dimensions, if requested if (maxWidth > 0) @@ -162,8 +162,8 @@ Common::Rect GfxText32::getPlaneRect(reg_t textObject) { if (!planeObject.isNull()) { planeRect.top = readSelectorValue(_segMan, planeObject, SELECTOR(top)); planeRect.left = readSelectorValue(_segMan, planeObject, SELECTOR(left)); - planeRect.bottom = readSelectorValue(_segMan, planeObject, SELECTOR(bottom)) + 1; - planeRect.right = readSelectorValue(_segMan, planeObject, SELECTOR(right)) + 1; + planeRect.bottom = readSelectorValue(_segMan, planeObject, SELECTOR(bottom)); + planeRect.right = readSelectorValue(_segMan, planeObject, SELECTOR(right)); } return planeRect;