mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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
This commit is contained in:
parent
735ab889d2
commit
767c0ec589
20 changed files with 54 additions and 51 deletions
|
@ -439,7 +439,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
rb->srand(*rb->current_tick);
|
||||
|
||||
/* Turn off backlight timeout */
|
||||
backlight_force_on(); /* backlight control in lib/helper.c */
|
||||
backlight_force_on(rb); /* backlight control in lib/helper.c */
|
||||
|
||||
m = menu_init(rb, items, sizeof(items) / sizeof(*items), NULL,
|
||||
NULL, NULL, NULL);
|
||||
|
@ -447,7 +447,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
menu_exit(m);
|
||||
|
||||
/* Turn on backlight timeout (revert to settings) */
|
||||
backlight_use_settings(); /* backlight control in lib/helper.c */
|
||||
backlight_use_settings(rb); /* backlight control in lib/helper.c */
|
||||
|
||||
rb->rmdir(testbasedir);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue