[Scummvm-cvs-logs] scummvm master -> e7bc07bafb920813adf34db13e698ec9f434597c
dreammaster
dreammaster at scummvm.org
Sat Jul 4 21:50:09 CEST 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
e7bc07bafb SHERLOCK: RT: Change bool switch to an if statement
Commit: e7bc07bafb920813adf34db13e698ec9f434597c
https://github.com/scummvm/scummvm/commit/e7bc07bafb920813adf34db13e698ec9f434597c
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-07-04T15:49:05-04:00
Commit Message:
SHERLOCK: RT: Change bool switch to an if statement
Changed paths:
engines/sherlock/tattoo/tattoo_user_interface.cpp
diff --git a/engines/sherlock/tattoo/tattoo_user_interface.cpp b/engines/sherlock/tattoo/tattoo_user_interface.cpp
index 832f707..2548185 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;
}
}
More information about the Scummvm-git-logs
mailing list