diff options
author | Filippos Karapetis | 2011-10-19 23:52:16 +0300 |
---|---|---|
committer | Filippos Karapetis | 2011-10-19 23:52:53 +0300 |
commit | 010d12ace83d79d17b4a8f81fb39ed19e7036f5a (patch) | |
tree | 7717e4605d724d758e2101aada45328281b49512 /engines/sci/graphics | |
parent | 84a185ede2940e2f6d43d6e6818ac1611e30f871 (diff) | |
download | scummvm-rg350-010d12ace83d79d17b4a8f81fb39ed19e7036f5a.tar.gz scummvm-rg350-010d12ace83d79d17b4a8f81fb39ed19e7036f5a.tar.bz2 scummvm-rg350-010d12ace83d79d17b4a8f81fb39ed19e7036f5a.zip |
SCI: Moved the width adjustment outside getPlaneRect()
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/text32.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/graphics/text32.cpp b/engines/sci/graphics/text32.cpp index 4890262d94..029030165d 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; |