forked from len0rd/rockbox
Flashlight plugin: make color sets wrap around in both directions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17325 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ed5f1ed3e2
commit
d4027744b6
1 changed files with 3 additions and 1 deletions
|
@ -139,7 +139,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
#ifdef HAVE_LCD_COLOR
|
||||
do
|
||||
{
|
||||
if((cs < 0) || (cs >= NUM_COLORSETS))
|
||||
if(cs < 0)
|
||||
cs = NUM_COLORSETS-1;
|
||||
if(cs >= NUM_COLORSETS)
|
||||
cs = 0;
|
||||
rb->lcd_set_background( LCD_RGBPACK( colorset[cs][0],
|
||||
colorset[cs][1],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue