diff options
author | Teruaki Kawashima <teru@rockbox.org> | 2009-12-18 14:17:28 +0000 |
---|---|---|
committer | Teruaki Kawashima <teru@rockbox.org> | 2009-12-18 14:17:28 +0000 |
commit | dc010201a5020b8b468a1a24a8fafb45a8986530 (patch) | |
tree | d07b364d2ee16ed4d0c4c9ad9818096c7e57f536 /apps/plugins/starfield.c | |
parent | 3e2aba0c3eded353ba119e5df23968d70b1263c5 (diff) | |
download | rockbox-dc010201a5020b8b468a1a24a8fafb45a8986530.tar.gz rockbox-dc010201a5020b8b468a1a24a8fafb45a8986530.zip |
make sure plugin reset backlight setting before exit. do code polish.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24076 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/starfield.c')
-rw-r--r-- | apps/plugins/starfield.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/starfield.c b/apps/plugins/starfield.c index 4a680ee91b..0da3305a6f 100644 --- a/apps/plugins/starfield.c +++ b/apps/plugins/starfield.c | |||
@@ -482,8 +482,6 @@ int plugin_main(void) | |||
482 | #endif | 482 | #endif |
483 | case(STARFIELD_QUIT): | 483 | case(STARFIELD_QUIT): |
484 | case(SYS_USB_CONNECTED): | 484 | case(SYS_USB_CONNECTED): |
485 | /* Turn on backlight timeout (revert to settings) */ | ||
486 | backlight_use_settings(); /* backlight control in lib/helper.c*/ | ||
487 | return PLUGIN_OK; | 485 | return PLUGIN_OK; |
488 | break; | 486 | break; |
489 | } | 487 | } |
@@ -502,6 +500,9 @@ enum plugin_status plugin_start(const void* parameter) | |||
502 | 500 | ||
503 | ret = plugin_main(); | 501 | ret = plugin_main(); |
504 | 502 | ||
503 | /* Turn on backlight timeout (revert to settings) */ | ||
504 | backlight_use_settings(); /* backlight control in lib/helper.c*/ | ||
505 | |||
505 | return ret; | 506 | return ret; |
506 | } | 507 | } |
507 | 508 | ||