diff options
-rw-r--r-- | apps/plugins/pictureflow/pictureflow.c | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c index c2fe178167..aba9443120 100644 --- a/apps/plugins/pictureflow/pictureflow.c +++ b/apps/plugins/pictureflow/pictureflow.c | |||
@@ -3623,6 +3623,24 @@ static void draw_album_text(void) | |||
3623 | } | 3623 | } |
3624 | 3624 | ||
3625 | /** | 3625 | /** |
3626 | Display an info message when items have been added to playlist | ||
3627 | */ | ||
3628 | static void rb_splash_added_to_playlist(void) | ||
3629 | { | ||
3630 | #ifdef USEGSLIB | ||
3631 | grey_show(false); | ||
3632 | rb->lcd_set_background(N_BRIGHT(0)); | ||
3633 | rb->lcd_set_foreground(N_BRIGHT(255)); | ||
3634 | rb->lcd_clear_display(); | ||
3635 | rb->lcd_update(); | ||
3636 | #endif | ||
3637 | rb->splash(HZ*2, ID2P(LANG_ADDED_TO_PLAYLIST)); | ||
3638 | #ifdef USEGSLIB | ||
3639 | grey_show(true); | ||
3640 | #endif | ||
3641 | } | ||
3642 | |||
3643 | /** | ||
3626 | Display an error message and wait for input. | 3644 | Display an error message and wait for input. |
3627 | */ | 3645 | */ |
3628 | static void error_wait(const char *message) | 3646 | static void error_wait(const char *message) |
@@ -3946,19 +3964,7 @@ static int pictureflow_main(void) | |||
3946 | PLAYLIST_INSERT_LAST, false, true); | 3964 | PLAYLIST_INSERT_LAST, false, true); |
3947 | rb->playlist_sync(NULL); | 3965 | rb->playlist_sync(NULL); |
3948 | } | 3966 | } |
3949 | #ifdef USEGSLIB | 3967 | rb_splash_added_to_playlist(); |
3950 | /* | ||
3951 | calling splash() without switching off the grayscale overlay | ||
3952 | beforehand, will lead to image corruption and a crash | ||
3953 | in testing on device (iPod 4G,iPod mini) | ||
3954 | */ | ||
3955 | grey_show(false); | ||
3956 | rb->lcd_clear_display(); | ||
3957 | #endif | ||
3958 | rb->splash(HZ*2, ID2P(LANG_ADDED_TO_PLAYLIST)); | ||
3959 | #ifdef USEGSLIB | ||
3960 | grey_show(true); | ||
3961 | #endif | ||
3962 | } | 3968 | } |
3963 | break; | 3969 | break; |
3964 | #endif | 3970 | #endif |