fix some problems with the menu code:
commit66da7b9588babd423a7defcf0fcfcf8584edd350
authorjdgordon <jdgordon@a1c6a512-1295-4272-9138-f99709370657>
Thu, 30 Oct 2008 07:07:45 +0000 (30 07:07 +0000)
committerjdgordon <jdgordon@a1c6a512-1295-4272-9138-f99709370657>
Thu, 30 Oct 2008 07:07:45 +0000 (30 07:07 +0000)
tree1a46923fa2a07c209d71929fe7b0fafb2f21daff
parent032a70e2260f205e2585131981c350828bb3ce99
fix some problems with the menu code:
- MENU_FUNC_CHECK_RETVAL has been loosened to return if the function returns non-zero (and passes that return value on as the return value for do_menu(). This is fine for now because only 2 places uses this flag and both return 1.
- when the option screen or a function is called from a menu which doesn't use the full screen viewport the wrong viewport was used (option screen crashed, and returning from the funciton ignored the origional viewport.) This is now changed so (for now) the option screen always gets the full screen viewport and returning from functions shows the menu correctly.

Some time in the future menu items which are functions should be changed to accept a viewport (if they end up drawing).
When that happens both option screen and the called function should use the menu's parent viewport

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18933 a1c6a512-1295-4272-9138-f99709370657
apps/menu.c