aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-04 15:49:05 -0400
committerPaul Gilbert2015-07-04 15:49:05 -0400
commite7bc07bafb920813adf34db13e698ec9f434597c (patch)
treec4d4fcb39267bcb05b3fa497ba14d976422883af /engines
parentb8bec0aaa02975c7dbd1587c0175ec3d1b68a65f (diff)
downloadscummvm-rg350-e7bc07bafb920813adf34db13e698ec9f434597c.tar.gz
scummvm-rg350-e7bc07bafb920813adf34db13e698ec9f434597c.tar.bz2
scummvm-rg350-e7bc07bafb920813adf34db13e698ec9f434597c.zip
SHERLOCK: RT: Change bool switch to an if statement
Diffstat (limited to 'engines')
-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;
}
}