Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Menu exit using OFF button

Menu exit using OFF button

From: Henri DAVID <hdavid_at_mail.com>
Date: Mon, 13 Jan 2003 17:33:19 +0100

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
Received on 2003-01-13

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy