Rockbox mail archive
Subject: Menu exit using OFF button
From: Henri DAVID (hdavid_at_mail.com)
Date: 2003-01-13
hi,
i patched the Menu.c in order.c exit the menu using the OFF.
While in a menu pressing OFF brings you back direclty to WPS/Browser.
as i don't know (yet) how to use Diff and those things, are a the
differences and the file is attached.
henri
line 89 : +
--------------------------------------
static bool quit = false;
--------------------------------------
line 249 : +
--------------------------------------
if (quit==true)
{
//m=0;
if (m==0)
{
quit=false;
}
exit = true;
}
else
{
--------------------------------------
line 336 : +
--------------------------------------
#ifdef HAVE_RECORDER_KEYPAD
case BUTTON_OFF:
lcd_scroll_pause();
exit = true;
quit = true;
break;
#endif
--------------------------------------
line 366 : change
--------------------------------------
status_draw();
lcd_update();
}
return false;
}
--------------------------------------
Becomes :
--------------------------------------
status_draw();
lcd_update();
}
}
return false;
}
--------------------------------------
- application/octet-stream attachment: menu.c
Page was last modified "Jan 10 2012" The Rockbox Crew
|