aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/text16.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/text16.cpp b/engines/sci/graphics/text16.cpp
index cac20865ac..27c3161169 100644
--- a/engines/sci/graphics/text16.cpp
+++ b/engines/sci/graphics/text16.cpp
@@ -321,7 +321,7 @@ int16 GfxText16::Size(Common::Rect &rect, const char *text, GuiResourceId fontId
totalHeight += textHeight;
curPos += charCount;
if (*curPos == ' ')
- curPos++;
+ curPos++; // skip over breaking space
}
rect.bottom = totalHeight;
rect.right = maxWidth ? maxWidth : MIN(rect.right, maxTextWidth);
@@ -436,7 +436,7 @@ void GfxText16::Box(const char *text, int16 bshow, const Common::Rect &rect, Tex
hline += textHeight;
text += charCount;
if (*text == ' ')
- text++;
+ text++; // skip over breaking space
}
SetFont(orgFontId);
_ports->penColor(orgPenColor);