diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-08-16 23:01:18 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-08-16 23:01:18 +0000 |
commit | 767c0ec5894f1acaad5e0def12d628c6f21bcf87 (patch) | |
tree | a2fbd9ac23adc395d4587a6c9cb85ba4cc001cb8 /apps/plugins/brickmania.c | |
parent | 735ab889d2bd41fdc8a5bf22d7ce5ed724d58474 (diff) | |
download | rockbox-767c0ec5894f1acaad5e0def12d628c6f21bcf87.tar.gz rockbox-767c0ec5894f1acaad5e0def12d628c6f21bcf87.zip |
Pass plugin api pointer to funtion directly, fixes crashes when doing incremental builds. Fix incorrect backlight changes in rockblox introduced recently.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14373 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/brickmania.c')
-rw-r--r-- | apps/plugins/brickmania.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index 2530cfc618..d4b774a93d 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c | |||
@@ -2031,7 +2031,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
2031 | rb->lcd_set_backdrop(NULL); | 2031 | rb->lcd_set_backdrop(NULL); |
2032 | #endif | 2032 | #endif |
2033 | /* Turn off backlight timeout */ | 2033 | /* Turn off backlight timeout */ |
2034 | backlight_force_on(); /* backlight control in lib/helper.c */ | 2034 | backlight_force_on(rb); /* backlight control in lib/helper.c */ |
2035 | 2035 | ||
2036 | /* now go ahead and have fun! */ | 2036 | /* now go ahead and have fun! */ |
2037 | while (game_loop()!=1); | 2037 | while (game_loop()!=1); |
@@ -2041,7 +2041,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
2041 | /* Restore user's original backlight setting */ | 2041 | /* Restore user's original backlight setting */ |
2042 | rb->lcd_setfont(FONT_UI); | 2042 | rb->lcd_setfont(FONT_UI); |
2043 | /* Turn on backlight timeout (revert to settings) */ | 2043 | /* Turn on backlight timeout (revert to settings) */ |
2044 | backlight_use_settings(); /* backlight control in lib/helper.c */ | 2044 | backlight_use_settings(rb); /* backlight control in lib/helper.c */ |
2045 | 2045 | ||
2046 | return PLUGIN_OK; | 2046 | return PLUGIN_OK; |
2047 | } | 2047 | } |