aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/screen.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-04-05 21:35:22 -0500
committerPaul Gilbert2015-04-05 21:35:22 -0500
commit900471834987c32b23b3162e2d2f40bbcc2b593d (patch)
tree74bb6a45e1c85ac99193f0fe642abdf94fd07e3a /engines/sherlock/screen.cpp
parentd17dea4afd76cba7280e3ffafd1e78a09430e983 (diff)
downloadscummvm-rg350-900471834987c32b23b3162e2d2f40bbcc2b593d.tar.gz
scummvm-rg350-900471834987c32b23b3162e2d2f40bbcc2b593d.tar.bz2
scummvm-rg350-900471834987c32b23b3162e2d2f40bbcc2b593d.zip
SHERLOCK: Fix display of journal
Diffstat (limited to 'engines/sherlock/screen.cpp')
-rw-r--r--engines/sherlock/screen.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/sherlock/screen.cpp b/engines/sherlock/screen.cpp
index 0eeddf2a5f..a30108118c 100644
--- a/engines/sherlock/screen.cpp
+++ b/engines/sherlock/screen.cpp
@@ -440,15 +440,16 @@ void Screen::buttonPrint(const Common::Point &pt, byte color, bool slamIt,
if (slamIt) {
print(Common::Point(xStart, pt.y + 1), COMMAND_HIGHLIGHTED, "%c", str[0]);
print(Common::Point(xStart + charWidth(str[0]), pt.y + 1),
- color, "%s", str.c_str() + 1);
+ COMMAND_FOREGROUND, str.c_str() + 1);
} else {
- print(Common::Point(xStart, pt.y), COMMAND_HIGHLIGHTED, "%c", str[0]);
- print(Common::Point(xStart + charWidth(str[0]), pt.y),
- color, "%s", str.c_str() + 1);
+ gPrint(Common::Point(xStart, pt.y), COMMAND_HIGHLIGHTED, "%c", str[0]);
+ gPrint(Common::Point(xStart + charWidth(str[0]), pt.y),
+ COMMAND_FOREGROUND, str.c_str() + 1);
}
+ } else if (slamIt) {
+ print(Common::Point(xStart, pt.y + 1), color, str.c_str());
} else {
- print(Common::Point(xStart, slamIt ? pt.y + 1 : pt.y), COMMAND_HIGHLIGHTED,
- "%s", str.c_str());
+ gPrint(Common::Point(xStart, pt.y), color, str.c_str());
}
}