aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeEngine.cpp
diff options
context:
space:
mode:
authorD G Turner2019-10-03 06:03:46 +0100
committerD G Turner2019-10-03 06:03:46 +0100
commit30c366ee5db4c27e9d0ef94fd5786af55b1b0147 (patch)
treed241f64a12d20a9a8b8eb636a841be200a91ae87 /gui/ThemeEngine.cpp
parent904e58c35b00c02bf869c17abb9f037e76d4a1a4 (diff)
downloadscummvm-rg350-30c366ee5db4c27e9d0ef94fd5786af55b1b0147.tar.gz
scummvm-rg350-30c366ee5db4c27e9d0ef94fd5786af55b1b0147.tar.bz2
scummvm-rg350-30c366ee5db4c27e9d0ef94fd5786af55b1b0147.zip
GUI: Add Missing Switch Default Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'gui/ThemeEngine.cpp')
-rw-r--r--gui/ThemeEngine.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index dd074ccef3..666b9b3d8a 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -1082,6 +1082,9 @@ void ThemeEngine::drawDialogBackground(const Common::Rect &r, DialogBackground b
case kDialogBackgroundDefault:
drawDD(kDDDefaultBackground, r);
break;
+
+ default:
+ // fallthrough intended
case kDialogBackgroundNone:
// no op
break;
@@ -1209,6 +1212,8 @@ void ThemeEngine::drawText(const Common::Rect &r, const Common::String &str, Wid
colorId = kTextColorNormalHover;
break;
+ default:
+ // fallthrough intended
case kStateEnabled:
case kStatePressed:
colorId = kTextColorNormal;
@@ -1230,6 +1235,8 @@ void ThemeEngine::drawText(const Common::Rect &r, const Common::String &str, Wid
colorId = kTextColorAlternativeHover;
break;
+ default:
+ // fallthrough intended
case kStateEnabled:
case kStatePressed:
colorId = kTextColorAlternative;