diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/clock.c | 10 | ||||
-rw-r--r-- | apps/plugins/favorites.c | 4 | ||||
-rw-r--r-- | apps/plugins/firmware_flash.c | 14 | ||||
-rw-r--r-- | apps/plugins/helloworld.c | 2 | ||||
-rw-r--r-- | apps/plugins/rockbox_flash.c | 12 | ||||
-rw-r--r-- | apps/plugins/sokoban.c | 4 | ||||
-rw-r--r-- | apps/plugins/video.c | 2 | ||||
-rw-r--r-- | apps/plugins/viewer.c | 36 |
8 files changed, 45 insertions, 39 deletions
diff --git a/apps/plugins/clock.c b/apps/plugins/clock.c index fa910efee2..1df0f709d4 100644 --- a/apps/plugins/clock.c +++ b/apps/plugins/clock.c | |||
@@ -65,7 +65,7 @@ void save_settings(void) | |||
65 | } | 65 | } |
66 | else | 66 | else |
67 | { | 67 | { |
68 | rb->splash(HZ, 0, true, "Setting save failed"); | 68 | rb->splash(HZ, true, "Setting save failed"); |
69 | } | 69 | } |
70 | } | 70 | } |
71 | 71 | ||
@@ -83,7 +83,7 @@ void load_settings(void) | |||
83 | /* Else, loading failed */ | 83 | /* Else, loading failed */ |
84 | else | 84 | else |
85 | { | 85 | { |
86 | rb->splash(HZ, 0, true, "Setting load failed, using default settings."); | 86 | rb->splash(HZ, true, "Setting load failed, using default settings."); |
87 | } | 87 | } |
88 | } | 88 | } |
89 | 89 | ||
@@ -121,7 +121,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
121 | load_settings(); | 121 | load_settings(); |
122 | 122 | ||
123 | rb->lcd_clear_display(); | 123 | rb->lcd_clear_display(); |
124 | rb->splash(HZ, 0, true, "F1 for INFO"); | 124 | rb->splash(HZ, true, "F1 for INFO"); |
125 | 125 | ||
126 | while (!PLUGIN_OK) | 126 | while (!PLUGIN_OK) |
127 | { | 127 | { |
@@ -324,11 +324,11 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
324 | 324 | ||
325 | /* Tell the user what's going on */ | 325 | /* Tell the user what's going on */ |
326 | rb->lcd_clear_display(); | 326 | rb->lcd_clear_display(); |
327 | rb->splash(HZ/2, 0, true, "Saving settings..."); | 327 | rb->splash(HZ/2, true, "Saving settings..."); |
328 | /* Save to disk */ | 328 | /* Save to disk */ |
329 | save_settings(); | 329 | save_settings(); |
330 | rb->lcd_clear_display(); | 330 | rb->lcd_clear_display(); |
331 | rb->splash(HZ, 0, true, "Saved!"); | 331 | rb->splash(HZ, true, "Saved!"); |
332 | /* ...and exit. */ | 332 | /* ...and exit. */ |
333 | return PLUGIN_OK; | 333 | return PLUGIN_OK; |
334 | break; | 334 | break; |
diff --git a/apps/plugins/favorites.c b/apps/plugins/favorites.c index 3ee597e3ef..949eeeae31 100644 --- a/apps/plugins/favorites.c +++ b/apps/plugins/favorites.c | |||
@@ -22,7 +22,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
22 | 22 | ||
23 | id3 = rb->mpeg_current_track(); | 23 | id3 = rb->mpeg_current_track(); |
24 | if (!id3) { | 24 | if (!id3) { |
25 | rb->splash(HZ*2, 0, true, "Nothing To Save"); | 25 | rb->splash(HZ*2, true, "Nothing To Save"); |
26 | return PLUGIN_OK; | 26 | return PLUGIN_OK; |
27 | } | 27 | } |
28 | 28 | ||
@@ -45,7 +45,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
45 | rb->close(fd); | 45 | rb->close(fd); |
46 | } | 46 | } |
47 | 47 | ||
48 | rb->splash(HZ*2, 0, true, "Saved Favorite"); | 48 | rb->splash(HZ*2, true, "Saved Favorite"); |
49 | 49 | ||
50 | return PLUGIN_OK; | 50 | return PLUGIN_OK; |
51 | } | 51 | } |
diff --git a/apps/plugins/firmware_flash.c b/apps/plugins/firmware_flash.c index c609f5ddad..c146b34544 100644 --- a/apps/plugins/firmware_flash.c +++ b/apps/plugins/firmware_flash.c | |||
@@ -611,7 +611,7 @@ void DoUserDialog(char* filename) | |||
611 | /* test if the user is running the correct plugin for this box */ | 611 | /* test if the user is running the correct plugin for this box */ |
612 | if (!CheckPlatform(PLATFORM_ID, *(UINT16*)(FB + VERSION_ADR))) | 612 | if (!CheckPlatform(PLATFORM_ID, *(UINT16*)(FB + VERSION_ADR))) |
613 | { | 613 | { |
614 | rb->splash(HZ*3, 0, true, "Wrong plugin"); | 614 | rb->splash(HZ*3, true, "Wrong plugin"); |
615 | return; /* exit */ | 615 | return; /* exit */ |
616 | } | 616 | } |
617 | 617 | ||
@@ -619,7 +619,7 @@ void DoUserDialog(char* filename) | |||
619 | result = CheckBootROM(); | 619 | result = CheckBootROM(); |
620 | if (result == eUnknown) | 620 | if (result == eUnknown) |
621 | { /* no support for any other yet */ | 621 | { /* no support for any other yet */ |
622 | rb->splash(HZ*3, 0, true, "Wrong boot ROM"); | 622 | rb->splash(HZ*3, true, "Wrong boot ROM"); |
623 | return; /* exit */ | 623 | return; /* exit */ |
624 | } | 624 | } |
625 | is_romless = (result == eROMless); | 625 | is_romless = (result == eROMless); |
@@ -640,7 +640,7 @@ void DoUserDialog(char* filename) | |||
640 | sector = rb->plugin_get_buffer(&memleft); | 640 | sector = rb->plugin_get_buffer(&memleft); |
641 | if (memleft < SEC_SIZE) /* need buffer for a flash sector */ | 641 | if (memleft < SEC_SIZE) /* need buffer for a flash sector */ |
642 | { | 642 | { |
643 | rb->splash(HZ*3, 0, true, "Out of memory"); | 643 | rb->splash(HZ*3, true, "Out of memory"); |
644 | return; /* exit */ | 644 | return; /* exit */ |
645 | } | 645 | } |
646 | 646 | ||
@@ -648,7 +648,7 @@ void DoUserDialog(char* filename) | |||
648 | ShowFlashInfo(&FlashInfo); | 648 | ShowFlashInfo(&FlashInfo); |
649 | if (FlashInfo.size == 0) /* no valid chip */ | 649 | if (FlashInfo.size == 0) /* no valid chip */ |
650 | { | 650 | { |
651 | rb->splash(HZ*3, 0, true, "Sorry!"); | 651 | rb->splash(HZ*3, true, "Sorry!"); |
652 | return; /* exit */ | 652 | return; /* exit */ |
653 | } | 653 | } |
654 | 654 | ||
@@ -832,7 +832,7 @@ void DoUserDialog(char* filename) | |||
832 | /* test if the user is running the correct plugin for this box */ | 832 | /* test if the user is running the correct plugin for this box */ |
833 | if (!CheckPlatform(PLATFORM_ID, *(UINT16*)(FB + VERSION_ADR))) | 833 | if (!CheckPlatform(PLATFORM_ID, *(UINT16*)(FB + VERSION_ADR))) |
834 | { | 834 | { |
835 | rb->splash(HZ*3, 0, true, "Wrong version"); | 835 | rb->splash(HZ*3, true, "Wrong version"); |
836 | return; /* exit */ | 836 | return; /* exit */ |
837 | } | 837 | } |
838 | 838 | ||
@@ -840,7 +840,7 @@ void DoUserDialog(char* filename) | |||
840 | result = CheckBootROM(); | 840 | result = CheckBootROM(); |
841 | if (result == eUnknown) | 841 | if (result == eUnknown) |
842 | { /* no support for any other yet */ | 842 | { /* no support for any other yet */ |
843 | rb->splash(HZ*3, 0, true, "Wrong boot ROM"); | 843 | rb->splash(HZ*3, true, "Wrong boot ROM"); |
844 | return; /* exit */ | 844 | return; /* exit */ |
845 | } | 845 | } |
846 | is_romless = (result == eROMless); | 846 | is_romless = (result == eROMless); |
@@ -861,7 +861,7 @@ void DoUserDialog(char* filename) | |||
861 | sector = rb->plugin_get_buffer(&memleft); | 861 | sector = rb->plugin_get_buffer(&memleft); |
862 | if (memleft < SEC_SIZE) /* need buffer for a flash sector */ | 862 | if (memleft < SEC_SIZE) /* need buffer for a flash sector */ |
863 | { | 863 | { |
864 | rb->splash(HZ*3, 0, true, "Out of memory"); | 864 | rb->splash(HZ*3, true, "Out of memory"); |
865 | return; /* exit */ | 865 | return; /* exit */ |
866 | } | 866 | } |
867 | 867 | ||
diff --git a/apps/plugins/helloworld.c b/apps/plugins/helloworld.c index ea347fbf79..d0fecba169 100644 --- a/apps/plugins/helloworld.c +++ b/apps/plugins/helloworld.c | |||
@@ -42,7 +42,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
42 | rb = api; | 42 | rb = api; |
43 | 43 | ||
44 | /* now go ahead and have fun! */ | 44 | /* now go ahead and have fun! */ |
45 | rb->splash(HZ*2, 0, true, "Hello world!"); | 45 | rb->splash(HZ*2, true, "Hello world!"); |
46 | 46 | ||
47 | return PLUGIN_OK; | 47 | return PLUGIN_OK; |
48 | } | 48 | } |
diff --git a/apps/plugins/rockbox_flash.c b/apps/plugins/rockbox_flash.c index 9dc4b3a663..661203b8b8 100644 --- a/apps/plugins/rockbox_flash.c +++ b/apps/plugins/rockbox_flash.c | |||
@@ -525,7 +525,7 @@ void DoUserDialog(char* filename, bool show_greet) | |||
525 | sector = rb->plugin_get_buffer(&memleft); | 525 | sector = rb->plugin_get_buffer(&memleft); |
526 | if (memleft < SECTORSIZE) /* need buffer for a flash sector */ | 526 | if (memleft < SECTORSIZE) /* need buffer for a flash sector */ |
527 | { | 527 | { |
528 | rb->splash(HZ*3, 0, true, "Out of memory"); | 528 | rb->splash(HZ*3, true, "Out of memory"); |
529 | return; /* exit */ | 529 | return; /* exit */ |
530 | } | 530 | } |
531 | 531 | ||
@@ -537,12 +537,12 @@ void DoUserDialog(char* filename, bool show_greet) | |||
537 | 537 | ||
538 | if (FlashInfo.size == 0) /* no valid chip */ | 538 | if (FlashInfo.size == 0) /* no valid chip */ |
539 | { | 539 | { |
540 | rb->splash(HZ*3, 0, true, "Not flashable"); | 540 | rb->splash(HZ*3, true, "Not flashable"); |
541 | return; /* exit */ | 541 | return; /* exit */ |
542 | } | 542 | } |
543 | else if (pos == 0) | 543 | else if (pos == 0) |
544 | { | 544 | { |
545 | rb->splash(HZ*3, 0, true, "No image"); | 545 | rb->splash(HZ*3, true, "No image"); |
546 | return; /* exit */ | 546 | return; /* exit */ |
547 | } | 547 | } |
548 | 548 | ||
@@ -701,7 +701,7 @@ void DoUserDialog(char* filename, bool show_greet) | |||
701 | sector = rb->plugin_get_buffer(&memleft); | 701 | sector = rb->plugin_get_buffer(&memleft); |
702 | if (memleft < SECTORSIZE) /* need buffer for a flash sector */ | 702 | if (memleft < SECTORSIZE) /* need buffer for a flash sector */ |
703 | { | 703 | { |
704 | rb->splash(HZ*3, 0, true, "Out of memory"); | 704 | rb->splash(HZ*3, true, "Out of memory"); |
705 | return; /* exit */ | 705 | return; /* exit */ |
706 | } | 706 | } |
707 | 707 | ||
@@ -716,12 +716,12 @@ void DoUserDialog(char* filename, bool show_greet) | |||
716 | 716 | ||
717 | if (FlashInfo.size == 0) /* no valid chip */ | 717 | if (FlashInfo.size == 0) /* no valid chip */ |
718 | { | 718 | { |
719 | rb->splash(HZ*3, 0, true, "Not flashable"); | 719 | rb->splash(HZ*3, true, "Not flashable"); |
720 | return; /* exit */ | 720 | return; /* exit */ |
721 | } | 721 | } |
722 | else if (pos == 0) | 722 | else if (pos == 0) |
723 | { | 723 | { |
724 | rb->splash(HZ*3, 0, true, "No image"); | 724 | rb->splash(HZ*3, true, "No image"); |
725 | return; /* exit */ | 725 | return; /* exit */ |
726 | } | 726 | } |
727 | 727 | ||
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c index 2387fa9517..47ae64c18f 100644 --- a/apps/plugins/sokoban.c +++ b/apps/plugins/sokoban.c | |||
@@ -241,7 +241,7 @@ static int get_level_count(void) | |||
241 | char buffer[COLS + 3]; /* COLS plus CR/LF and \0 */ | 241 | char buffer[COLS + 3]; /* COLS plus CR/LF and \0 */ |
242 | 242 | ||
243 | if ((fd = rb->open(LEVELS_FILE, O_RDONLY)) < 0) { | 243 | if ((fd = rb->open(LEVELS_FILE, O_RDONLY)) < 0) { |
244 | rb->splash(0, 0, true, "Unable to open %s", LEVELS_FILE); | 244 | rb->splash(0, true, "Unable to open %s", LEVELS_FILE); |
245 | return -1; | 245 | return -1; |
246 | } | 246 | } |
247 | 247 | ||
@@ -858,7 +858,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
858 | init_boards(); | 858 | init_boards(); |
859 | 859 | ||
860 | if (get_level_count() != 0) { | 860 | if (get_level_count() != 0) { |
861 | rb->splash(HZ*2,0,true,"Failed loading levels!"); | 861 | rb->splash(HZ*2, true, "Failed loading levels!"); |
862 | return PLUGIN_OK; | 862 | return PLUGIN_OK; |
863 | } | 863 | } |
864 | 864 | ||
diff --git a/apps/plugins/video.c b/apps/plugins/video.c index 5620253d59..c07519ed3d 100644 --- a/apps/plugins/video.c +++ b/apps/plugins/video.c | |||
@@ -340,7 +340,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
340 | 340 | ||
341 | if (parameter == NULL) | 341 | if (parameter == NULL) |
342 | { | 342 | { |
343 | rb->splash(HZ*2, 0, true, "Play .rvf file!"); | 343 | rb->splash(HZ*2, true, "Play .rvf file!"); |
344 | return PLUGIN_ERROR; | 344 | return PLUGIN_ERROR; |
345 | } | 345 | } |
346 | 346 | ||
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index 6f2c5840fd..d8d6b516bd 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c | |||
@@ -662,8 +662,9 @@ static int viewer_recorder_on_button(int col) | |||
662 | if (++page_mode == PAGE_MODES) | 662 | if (++page_mode == PAGE_MODES) |
663 | page_mode = 0; | 663 | page_mode = 0; |
664 | 664 | ||
665 | rb->splash(HZ, 0, true, "%s %s", | 665 | rb->splash(HZ, true, "%s %s", |
666 | page_mode_str[page_mode], page_mode_str[PAGE_MODES]); | 666 | page_mode_str[page_mode], |
667 | page_mode_str[PAGE_MODES]); | ||
667 | 668 | ||
668 | viewer_draw(col); | 669 | viewer_draw(col); |
669 | break; | 670 | break; |
@@ -677,10 +678,11 @@ static int viewer_recorder_on_button(int col) | |||
677 | init_need_scrollbar(); | 678 | init_need_scrollbar(); |
678 | viewer_draw(col); | 679 | viewer_draw(col); |
679 | 680 | ||
680 | rb->splash(HZ, 0, true, "%s %s (%s %s)", | 681 | rb->splash(HZ, true, "%s %s (%s %s)", |
681 | scrollbar_mode_str[SCROLLBAR_MODES], | 682 | scrollbar_mode_str[SCROLLBAR_MODES], |
682 | scrollbar_mode_str[scrollbar_mode[view_mode]], | 683 | scrollbar_mode_str[scrollbar_mode[view_mode]], |
683 | view_mode_str[view_mode], view_mode_str[VIEW_MODES]); | 684 | view_mode_str[view_mode], |
685 | view_mode_str[VIEW_MODES]); | ||
684 | } | 686 | } |
685 | viewer_draw(col); | 687 | viewer_draw(col); |
686 | break; | 688 | break; |
@@ -744,7 +746,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) | |||
744 | 746 | ||
745 | ok = viewer_init(file); | 747 | ok = viewer_init(file); |
746 | if (!ok) { | 748 | if (!ok) { |
747 | rb->splash(HZ, 0, false, "Error"); | 749 | rb->splash(HZ, false, "Error"); |
748 | viewer_exit(); | 750 | viewer_exit(); |
749 | return PLUGIN_OK; | 751 | return PLUGIN_OK; |
750 | } | 752 | } |
@@ -776,8 +778,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) | |||
776 | #endif | 778 | #endif |
777 | viewer_draw(col); | 779 | viewer_draw(col); |
778 | 780 | ||
779 | rb->splash(HZ, 0, true, "%s %s", | 781 | rb->splash(HZ, true, "%s %s", |
780 | word_mode_str[word_mode], word_mode_str[WORD_MODES]); | 782 | word_mode_str[word_mode], |
783 | word_mode_str[WORD_MODES]); | ||
781 | 784 | ||
782 | viewer_draw(col); | 785 | viewer_draw(col); |
783 | break; | 786 | break; |
@@ -801,8 +804,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) | |||
801 | #endif | 804 | #endif |
802 | viewer_draw(col); | 805 | viewer_draw(col); |
803 | 806 | ||
804 | rb->splash(HZ, 0, true, "%s %s", | 807 | rb->splash(HZ, true, "%s %s", |
805 | line_mode_str[line_mode], line_mode_str[LINE_MODES]); | 808 | line_mode_str[line_mode], |
809 | line_mode_str[LINE_MODES]); | ||
806 | 810 | ||
807 | viewer_draw(col); | 811 | viewer_draw(col); |
808 | break; | 812 | break; |
@@ -814,8 +818,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) | |||
814 | #endif | 818 | #endif |
815 | /* View-width mode: NARROW or WIDE */ | 819 | /* View-width mode: NARROW or WIDE */ |
816 | if (line_mode == JOIN) | 820 | if (line_mode == JOIN) |
817 | rb->splash(HZ, 0, true, "(no %s %s)", | 821 | rb->splash(HZ, true, "(no %s %s)", |
818 | view_mode_str[WIDE], line_mode_str[JOIN]); | 822 | view_mode_str[WIDE], |
823 | line_mode_str[JOIN]); | ||
819 | else | 824 | else |
820 | if (++view_mode == VIEW_MODES) | 825 | if (++view_mode == VIEW_MODES) |
821 | view_mode = 0; | 826 | view_mode = 0; |
@@ -840,8 +845,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) | |||
840 | #endif | 845 | #endif |
841 | viewer_draw(col); | 846 | viewer_draw(col); |
842 | 847 | ||
843 | rb->splash(HZ, 0, true, "%s %s", | 848 | rb->splash(HZ, true, "%s %s", |
844 | view_mode_str[view_mode], view_mode_str[VIEW_MODES]); | 849 | view_mode_str[view_mode], |
850 | view_mode_str[VIEW_MODES]); | ||
845 | 851 | ||
846 | viewer_draw(col); | 852 | viewer_draw(col); |
847 | break; | 853 | break; |