aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sherlock/tattoo/tattoo_user_interface.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/sherlock/tattoo/tattoo_user_interface.cpp b/engines/sherlock/tattoo/tattoo_user_interface.cpp
index 832f707039..2548185ede 100644
--- a/engines/sherlock/tattoo/tattoo_user_interface.cpp
+++ b/engines/sherlock/tattoo/tattoo_user_interface.cpp
@@ -812,8 +812,7 @@ void TattooUserInterface::makeBGArea(const Common::Rect &r) {
}
void TattooUserInterface::drawDialogRect(Surface &s, const Common::Rect &r, bool raised) {
- switch (raised) {
- case true:
+ if (raised) {
// Draw Left
s.vLine(r.left, r.top, r.bottom - 1, INFO_TOP);
s.vLine(r.left + 1, r.top, r.bottom - 2, INFO_TOP);
@@ -826,9 +825,8 @@ void TattooUserInterface::drawDialogRect(Surface &s, const Common::Rect &r, bool
// Draw Bottom
s.hLine(r.left + 1, r.bottom - 1, r.right - 3, INFO_BOTTOM);
s.hLine(r.left + 2, r.bottom - 2, r.right - 3, INFO_BOTTOM);
- break;
- case false:
+ } else {
// Draw Left
s.vLine(r.left, r.top, r.bottom - 1, INFO_BOTTOM);
s.vLine(r.left + 1, r.top, r.bottom - 2, INFO_BOTTOM);
@@ -841,7 +839,6 @@ void TattooUserInterface::drawDialogRect(Surface &s, const Common::Rect &r, bool
// Draw Bottom
s.hLine(r.left + 1, r.bottom - 1, r.right - 3, INFO_TOP);
s.hLine(r.left + 2, r.bottom - 2, r.right - 3, INFO_TOP);
- break;
}
}