aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sword1/control.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/sword1/control.cpp b/sword1/control.cpp
index b493df4f48..de2cad84b7 100644
--- a/sword1/control.cpp
+++ b/sword1/control.cpp
@@ -254,8 +254,8 @@ uint8 SwordControl::handleButtonClick(uint8 id, uint8 mode, uint8 *retVal) {
else if (id == BUTTON_TEXT) {
SwordEngine::_systemVars.showText ^= 1;
_buttons[6]->setSelected(SwordEngine::_systemVars.showText);
- } else
- return 0;
+ }
+ break;
case BUTTON_SAVE_PANEL:
case BUTTON_RESTORE_PANEL:
if ((id >= BUTTON_SCROLL_UP_FAST) && (id <= BUTTON_SCROLL_DOWN_FAST))
@@ -274,6 +274,7 @@ uint8 SwordControl::handleButtonClick(uint8 id, uint8 mode, uint8 *retVal) {
}
} else if (id == BUTTON_SAVE_CANCEL)
return BUTTON_MAIN_PANEL; // mode down to main panel
+ break;
case BUTTON_VOLUME_PANEL:
return id;
}