aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2014-11-01 00:57:26 +0100
committerMartin Kiewitz2014-11-01 00:57:26 +0100
commit9561d5f6f8d5fab355ee56f70879443177b58ee1 (patch)
treeeec7bb7cf5afc240ed298682852d97eb7d646251 /engines
parent5b42fa81961d86b20659e50f10eb828b900dd1d9 (diff)
downloadscummvm-rg350-9561d5f6f8d5fab355ee56f70879443177b58ee1.tar.gz
scummvm-rg350-9561d5f6f8d5fab355ee56f70879443177b58ee1.tar.bz2
scummvm-rg350-9561d5f6f8d5fab355ee56f70879443177b58ee1.zip
SCI: revert r55034, fixes bug #6539
original bug wasn't solved properly will reopen the original bug #5334 and figure out that one instead
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/text16.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/engines/sci/graphics/text16.cpp b/engines/sci/graphics/text16.cpp
index 245d6996cb..808ce45d0d 100644
--- a/engines/sci/graphics/text16.cpp
+++ b/engines/sci/graphics/text16.cpp
@@ -337,8 +337,6 @@ int16 GfxText16::Size(Common::Rect &rect, const char *text, GuiResourceId fontId
maxTextWidth = MAX(textWidth, maxTextWidth);
totalHeight += textHeight;
curPos += charCount;
- while (*curPos == ' ')
- curPos++; // skip over breaking spaces
}
rect.bottom = totalHeight;
rect.right = maxWidth ? maxWidth : MIN(rect.right, maxTextWidth);
@@ -458,8 +456,6 @@ void GfxText16::Box(const char *text, bool show, const Common::Rect &rect, TextA
hline += textHeight;
text += charCount;
- while (*text == ' ')
- text++; // skip over breaking spaces
}
SetFont(previousFontId);
_ports->penColor(previousPenColor);