forked from len0rd/rockbox
PictureFlow: (grayscale) invert ‘Added to Playlist’ message
Feels less interruptive this way, since the background doesn't suddenly switch from dark to light. Also moved message to separate function and added missing lcd_update() after clearing display. Change-Id: Id196554b42fa4de16a6b23136d27358159b746b6
This commit is contained in:
parent
2ee4f50fa6
commit
8325b59f3b
1 changed files with 19 additions and 13 deletions
|
@ -3622,6 +3622,24 @@ static void draw_album_text(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Display an info message when items have been added to playlist
|
||||||
|
*/
|
||||||
|
static void rb_splash_added_to_playlist(void)
|
||||||
|
{
|
||||||
|
#ifdef USEGSLIB
|
||||||
|
grey_show(false);
|
||||||
|
rb->lcd_set_background(N_BRIGHT(0));
|
||||||
|
rb->lcd_set_foreground(N_BRIGHT(255));
|
||||||
|
rb->lcd_clear_display();
|
||||||
|
rb->lcd_update();
|
||||||
|
#endif
|
||||||
|
rb->splash(HZ*2, ID2P(LANG_ADDED_TO_PLAYLIST));
|
||||||
|
#ifdef USEGSLIB
|
||||||
|
grey_show(true);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Display an error message and wait for input.
|
Display an error message and wait for input.
|
||||||
*/
|
*/
|
||||||
|
@ -3946,19 +3964,7 @@ static int pictureflow_main(void)
|
||||||
PLAYLIST_INSERT_LAST, false, true);
|
PLAYLIST_INSERT_LAST, false, true);
|
||||||
rb->playlist_sync(NULL);
|
rb->playlist_sync(NULL);
|
||||||
}
|
}
|
||||||
#ifdef USEGSLIB
|
rb_splash_added_to_playlist();
|
||||||
/*
|
|
||||||
calling splash() without switching off the grayscale overlay
|
|
||||||
beforehand, will lead to image corruption and a crash
|
|
||||||
in testing on device (iPod 4G,iPod mini)
|
|
||||||
*/
|
|
||||||
grey_show(false);
|
|
||||||
rb->lcd_clear_display();
|
|
||||||
#endif
|
|
||||||
rb->splash(HZ*2, ID2P(LANG_ADDED_TO_PLAYLIST));
|
|
||||||
#ifdef USEGSLIB
|
|
||||||
grey_show(true);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue