From 9dae78e4816d4631dacc2f357011b3f429e00333 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 16 Mar 2006 08:20:57 +0000 Subject: Restore the backlight setting properly when leaving Xobox git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9056 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/xobox.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/plugins/xobox.c b/apps/plugins/xobox.c index b578ccbf53..2093ab1eab 100644 --- a/apps/plugins/xobox.c +++ b/apps/plugins/xobox.c @@ -797,17 +797,16 @@ enum plugin_status plugin_start (struct plugin_api *api, void *parameter) if (rb->global_settings->backlight_timeout > 0) rb->backlight_set_timeout (1); + ret = PLUGIN_OK; + randomize (); - ret = game_menu (); - if (ret == MENU_START) { + if (game_menu () == MENU_START) { init_game (); ret = xobox_loop (); - return ret; } rb->backlight_set_timeout (rb->global_settings->backlight_timeout); rb->lcd_setfont (FONT_UI); - - return PLUGIN_OK; + return ret; } -- cgit v1.2.3