aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorMartin Kiewitz2010-07-30 16:23:09 +0000
committerMartin Kiewitz2010-07-30 16:23:09 +0000
commit6aa228ccd8343b865f1ace5f0d404ee4714df5ed (patch)
tree23e2d369ae44ecb3057b7b9160160f45b99a424a /engines/sci/graphics
parent6dd5dfb7d0aa7e1d64f2e49ed3017dcceef6dbb1 (diff)
downloadscummvm-rg350-6aa228ccd8343b865f1ace5f0d404ee4714df5ed.tar.gz
scummvm-rg350-6aa228ccd8343b865f1ace5f0d404ee4714df5ed.tar.bz2
scummvm-rg350-6aa228ccd8343b865f1ace5f0d404ee4714df5ed.zip
SCI: fixing another text color code issue
(sq5 some dialog boxes again using wrong font in rare cases) svn-id: r51512
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r--engines/sci/graphics/text16.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/graphics/text16.cpp b/engines/sci/graphics/text16.cpp
index 61737cad05..b0c302297b 100644
--- a/engines/sci/graphics/text16.cpp
+++ b/engines/sci/graphics/text16.cpp
@@ -406,7 +406,7 @@ void GfxText16::Box(const char *text, int16 bshow, const Common::Rect &rect, Tex
charCount = GetLongest(text, rect.width(), orgFontId);
if (charCount == 0)
break;
- Width(text, 0, charCount, orgFontId, textWidth, textHeight);
+ Width(text, 0, charCount, fontId, textWidth, textHeight);
maxTextWidth = MAX<int16>(maxTextWidth, textWidth);
switch (alignment) {
case SCI_TEXT16_ALIGNMENT_RIGHT: