diff options
author | D G Turner | 2019-11-09 05:42:33 +0000 |
---|---|---|
committer | D G Turner | 2019-11-09 05:42:33 +0000 |
commit | fbb60c6d8997bcaf671a52ca114bbb3d6293b43b (patch) | |
tree | 2ed65d07b7acc90303288136872977067d70e421 /engines/touche/menu.cpp | |
parent | fd2f01fddaf51bbe8e2d162035f0889703549c57 (diff) | |
download | scummvm-rg350-fbb60c6d8997bcaf671a52ca114bbb3d6293b43b.tar.gz scummvm-rg350-fbb60c6d8997bcaf671a52ca114bbb3d6293b43b.tar.bz2 scummvm-rg350-fbb60c6d8997bcaf671a52ca114bbb3d6293b43b.zip |
TOUCHE: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/touche/menu.cpp')
-rw-r--r-- | engines/touche/menu.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/touche/menu.cpp b/engines/touche/menu.cpp index 72f37b959c..b3698f1683 100644 --- a/engines/touche/menu.cpp +++ b/engines/touche/menu.cpp @@ -76,6 +76,8 @@ void ToucheEngine::drawButton(Button *button) { dx = -1; dy = -2; break; + default: + break; } const int x = button->x + button->w / 2; const int y = button->y + button->h / 2; @@ -158,6 +160,8 @@ static void setupMenu(MenuMode mode, MenuData *menuData) { menuData->buttonsTable = saveLoadButtonsTable; menuData->buttonsCount = ARRAYSIZE(saveLoadButtonsTable); break; + default: + break; } } @@ -177,6 +181,8 @@ void ToucheEngine::redrawMenu(MenuData *menu) { case kMenuSaveStateMode: drawSaveGameStateDescriptions(_offscreenBuffer, kScreenWidth, menu, _saveLoadCurrentPage, _saveLoadCurrentSlot); break; + default: + break; } for (uint i = 0; i < menu->buttonsCount; ++i) { drawButton(&menu->buttonsTable[i]); |