From 88d7cd586d49aa9133383d95833e7129f1ae22ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20G=C3=B6ffringmann?= Date: Tue, 23 Dec 2003 17:34:23 +0000 Subject: [PATCH] fix control panel bug svn-id: r11878 --- sword1/control.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sword1/control.cpp b/sword1/control.cpp index b493df4f480..de2cad84b70 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; }