diff options
Diffstat (limited to 'apps/plugin.c')
-rw-r--r-- | apps/plugin.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index b023a6553f..0b09d07ad6 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -182,7 +182,7 @@ static const struct plugin_api rockbox_api = { | |||
182 | button_get_w_tmo, | 182 | button_get_w_tmo, |
183 | button_status, | 183 | button_status, |
184 | button_clear_queue, | 184 | button_clear_queue, |
185 | #ifdef HAS_BUTTON_HOLD | 185 | #ifdef HAS_BUTTON_HOLD |
186 | button_hold, | 186 | button_hold, |
187 | #endif | 187 | #endif |
188 | 188 | ||
@@ -202,7 +202,7 @@ static const struct plugin_api rockbox_api = { | |||
202 | settings_parseline, | 202 | settings_parseline, |
203 | #ifndef SIMULATOR | 203 | #ifndef SIMULATOR |
204 | ata_sleep, | 204 | ata_sleep, |
205 | ata_disk_is_active, | 205 | ata_disk_is_active, |
206 | #endif | 206 | #endif |
207 | 207 | ||
208 | /* dir */ | 208 | /* dir */ |
@@ -290,7 +290,7 @@ static const struct plugin_api rockbox_api = { | |||
290 | bitswap, | 290 | bitswap, |
291 | #endif | 291 | #endif |
292 | #if CONFIG_CODEC == SWCODEC | 292 | #if CONFIG_CODEC == SWCODEC |
293 | pcm_play_data, | 293 | pcm_play_data, |
294 | pcm_play_stop, | 294 | pcm_play_stop, |
295 | pcm_set_frequency, | 295 | pcm_set_frequency, |
296 | pcm_is_playing, | 296 | pcm_is_playing, |
@@ -357,7 +357,7 @@ static const struct plugin_api rockbox_api = { | |||
357 | battery_level_safe, | 357 | battery_level_safe, |
358 | battery_time, | 358 | battery_time, |
359 | #ifndef SIMULATOR | 359 | #ifndef SIMULATOR |
360 | battery_voltage, | 360 | battery_voltage, |
361 | #endif | 361 | #endif |
362 | #ifdef HAVE_CHARGING | 362 | #ifdef HAVE_CHARGING |
363 | charger_inserted, | 363 | charger_inserted, |
@@ -434,6 +434,10 @@ static const struct plugin_api rockbox_api = { | |||
434 | gui_synclist_scroll_left, | 434 | gui_synclist_scroll_left, |
435 | #endif | 435 | #endif |
436 | gui_synclist_do_button, | 436 | gui_synclist_do_button, |
437 | |||
438 | #ifdef HAVE_LCD_BITMAP | ||
439 | lcd_setmargins, | ||
440 | #endif | ||
437 | }; | 441 | }; |
438 | 442 | ||
439 | int plugin_load(const char* plugin, void* parameter) | 443 | int plugin_load(const char* plugin, void* parameter) |
@@ -553,7 +557,7 @@ int plugin_load(const char* plugin, void* parameter) | |||
553 | #ifdef HAVE_LCD_BITMAP | 557 | #ifdef HAVE_LCD_BITMAP |
554 | #if LCD_DEPTH > 1 | 558 | #if LCD_DEPTH > 1 |
555 | #ifdef HAVE_LCD_COLOR | 559 | #ifdef HAVE_LCD_COLOR |
556 | lcd_set_drawinfo(DRMODE_SOLID, global_settings.fg_color, | 560 | lcd_set_drawinfo(DRMODE_SOLID, global_settings.fg_color, |
557 | global_settings.bg_color); | 561 | global_settings.bg_color); |
558 | #else | 562 | #else |
559 | lcd_set_drawinfo(DRMODE_SOLID, LCD_DEFAULT_FG, LCD_DEFAULT_BG); | 563 | lcd_set_drawinfo(DRMODE_SOLID, LCD_DEFAULT_FG, LCD_DEFAULT_BG); |
@@ -607,7 +611,7 @@ void* plugin_get_buffer(int* buffer_size) | |||
607 | { | 611 | { |
608 | if (plugin_size >= PLUGIN_BUFFER_SIZE) | 612 | if (plugin_size >= PLUGIN_BUFFER_SIZE) |
609 | return NULL; | 613 | return NULL; |
610 | 614 | ||
611 | *buffer_size = PLUGIN_BUFFER_SIZE-plugin_size; | 615 | *buffer_size = PLUGIN_BUFFER_SIZE-plugin_size; |
612 | buffer_pos = plugin_size; | 616 | buffer_pos = plugin_size; |
613 | } | 617 | } |
@@ -620,7 +624,7 @@ void* plugin_get_buffer(int* buffer_size) | |||
620 | return &pluginbuf[buffer_pos]; | 624 | return &pluginbuf[buffer_pos]; |
621 | } | 625 | } |
622 | 626 | ||
623 | /* Returns a pointer to the mp3 buffer. | 627 | /* Returns a pointer to the mp3 buffer. |
624 | Playback gets stopped, to avoid conflicts. */ | 628 | Playback gets stopped, to avoid conflicts. */ |
625 | void* plugin_get_audio_buffer(int* buffer_size) | 629 | void* plugin_get_audio_buffer(int* buffer_size) |
626 | { | 630 | { |
@@ -631,7 +635,7 @@ void* plugin_get_audio_buffer(int* buffer_size) | |||
631 | } | 635 | } |
632 | 636 | ||
633 | /* The plugin wants to stay resident after leaving its main function, e.g. | 637 | /* The plugin wants to stay resident after leaving its main function, e.g. |
634 | runs from timer or own thread. The callback is registered to later | 638 | runs from timer or own thread. The callback is registered to later |
635 | instruct it to free its resources before a new plugin gets loaded. */ | 639 | instruct it to free its resources before a new plugin gets loaded. */ |
636 | void plugin_tsr(void (*exit_callback)(void)) | 640 | void plugin_tsr(void (*exit_callback)(void)) |
637 | { | 641 | { |