diff options
author | Martin Kiewitz | 2010-04-24 12:53:14 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-04-24 12:53:14 +0000 |
commit | ca93a6ce9c51d4d994ce2657c57794bea1cb7223 (patch) | |
tree | 8dd5f55bc00f11df6ca15735f084fa41d72ca752 /engines/sci/graphics | |
parent | 02b9b1019932796156c791f568d05a51b9c942c0 (diff) | |
download | scummvm-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.cpp | 4 |
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); |