Remove MENUS_LOCK
This commit is contained in:
@@ -33,16 +33,6 @@ void drawSplash()
|
||||
{
|
||||
lcdClear();
|
||||
lcdDraw1bitBitmap(0, 0, splash_lbm, 0, 0);
|
||||
|
||||
#if MENUS_LOCK == 1
|
||||
if (readonly == false) {
|
||||
lcdDrawFilledRect((LCD_W - (sizeof(TR_UNLOCKED) - 1) * FW) / 2 - 9, 50,
|
||||
(sizeof(TR_UNLOCKED) - 1) * FW + 16, 11, SOLID,
|
||||
ERASE | ROUND);
|
||||
lcdDrawText((LCD_W - (sizeof(TR_UNLOCKED) - 1) * FW) / 2, 53, STR_UNLOCKED);
|
||||
}
|
||||
#endif
|
||||
|
||||
lcdRefresh();
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -461,7 +461,6 @@ void menuMainView(event_t event)
|
||||
POPUP_MENU_START(onMainViewMenu);
|
||||
break;
|
||||
|
||||
#if MENUS_LOCK != 2 /*no menus*/
|
||||
#if defined(EVT_KEY_LAST_MENU)
|
||||
case EVT_KEY_LAST_MENU:
|
||||
pushMenu(lastPopMenu());
|
||||
@@ -478,7 +477,7 @@ void menuMainView(event_t event)
|
||||
pushMenu(menuTabGeneral[0]);
|
||||
killEvents(event);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if defined(HARDWARE_NO_TRIMS)
|
||||
case EVT_KEY_FIRST(KEY_ENTER):
|
||||
if (!trimSelection.preEnterValid) {
|
||||
|
||||
@@ -37,16 +37,6 @@ void drawSplash()
|
||||
{
|
||||
lcdClear();
|
||||
lcdDrawRleBitmap(0, 0, splash_lbm);
|
||||
|
||||
#if MENUS_LOCK == 1
|
||||
if (readonly == false) {
|
||||
lcdDrawFilledRect((LCD_W - (sizeof(TR_UNLOCKED) - 1) * FW) / 2 - 9, 50,
|
||||
(sizeof(TR_UNLOCKED) - 1) * FW + 16, 11, SOLID,
|
||||
ERASE | ROUND);
|
||||
lcdDrawText((LCD_W - (sizeof(TR_UNLOCKED) - 1) * FW) / 2, 53, STR_UNLOCKED);
|
||||
}
|
||||
#endif
|
||||
|
||||
lcdRefresh();
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -449,7 +449,6 @@ void menuMainView(event_t event)
|
||||
POPUP_MENU_START(onMainViewMenu);
|
||||
break;
|
||||
|
||||
#if MENUS_LOCK != 2/*no menus*/
|
||||
case EVT_KEY_BREAK(KEY_MENU):
|
||||
pushMenu(menuModelSelect);
|
||||
break;
|
||||
@@ -458,7 +457,6 @@ void menuMainView(event_t event)
|
||||
pushMenu(menuTabGeneral[0]);
|
||||
killEvents(event);
|
||||
break;
|
||||
#endif
|
||||
|
||||
case EVT_KEY_BREAK(KEY_PAGE):
|
||||
storageDirty(EE_MODEL);
|
||||
|
||||
Reference in New Issue
Block a user