aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorFilippos Karapetis2010-12-24 15:53:06 +0000
committerFilippos Karapetis2010-12-24 15:53:06 +0000
commitbc9442d6d88f295e84c495190cd2a159f4a092e3 (patch)
tree8ce77bec9463bd5649822a17f531c645f7be84ea /engines/sci/graphics
parent5e5410f8919800c26e30d3f376489b20494f6393 (diff)
downloadscummvm-rg350-bc9442d6d88f295e84c495190cd2a159f4a092e3.tar.gz
scummvm-rg350-bc9442d6d88f295e84c495190cd2a159f4a092e3.tar.bz2
scummvm-rg350-bc9442d6d88f295e84c495190cd2a159f4a092e3.zip
SCI: Fixed bug #3059860 - "LB2CD: Glitch in Act 6 coroner answer buttons"
svn-id: r55034
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r--engines/sci/graphics/text16.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/graphics/text16.cpp b/engines/sci/graphics/text16.cpp
index 3fba3006c7..b886ad70a9 100644
--- a/engines/sci/graphics/text16.cpp
+++ b/engines/sci/graphics/text16.cpp
@@ -335,8 +335,8 @@ int16 GfxText16::Size(Common::Rect &rect, const char *text, GuiResourceId fontId
maxTextWidth = MAX(textWidth, maxTextWidth);
totalHeight += textHeight;
curPos += charCount;
- if (*curPos == ' ')
- curPos++; // skip over breaking space
+ while (*curPos == ' ')
+ curPos++; // skip over breaking spaces
}
rect.bottom = totalHeight;
rect.right = maxWidth ? maxWidth : MIN(rect.right, maxTextWidth);
@@ -456,8 +456,8 @@ void GfxText16::Box(const char *text, int16 bshow, const Common::Rect &rect, Tex
hline += textHeight;
text += charCount;
- if (*text == ' ')
- text++; // skip over breaking space
+ while (*text == ' ')
+ text++; // skip over breaking spaces
}
SetFont(previousFontId);
_ports->penColor(previousPenColor);