aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorMartin Kiewitz2010-04-24 12:53:14 +0000
committerMartin Kiewitz2010-04-24 12:53:14 +0000
commitca93a6ce9c51d4d994ce2657c57794bea1cb7223 (patch)
tree8dd5f55bc00f11df6ca15735f084fa41d72ca752 /engines/sci/graphics
parent02b9b1019932796156c791f568d05a51b9c942c0 (diff)
downloadscummvm-rg350-ca93a6ce9c51d4d994ce2657c57794bea1cb7223.tar.gz
scummvm-rg350-ca93a6ce9c51d4d994ce2657c57794bea1cb7223.tar.bz2
scummvm-rg350-ca93a6ce9c51d4d994ce2657c57794bea1cb7223.zip
SCI: document skipping over breaking spaces done in r48781
svn-id: r48782
Diffstat (limited to 'engines/sci/graphics')
-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);