forked from len0rd/rockbox
make sure plugin reset backlight setting before exit. do code polish.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24076 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3e2aba0c3e
commit
dc010201a5
9 changed files with 73 additions and 71 deletions
|
|
@ -208,20 +208,20 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
x = 2*GFX_WIDTH-x;
|
||||
sx=-sx;
|
||||
}
|
||||
|
||||
|
||||
if (x<0)
|
||||
{
|
||||
x = -x;
|
||||
sx = -sx;
|
||||
}
|
||||
|
||||
|
||||
y+=sy;
|
||||
if (y>GFX_HEIGHT)
|
||||
{
|
||||
y = 2*GFX_HEIGHT-y;
|
||||
sy=-sy;
|
||||
}
|
||||
|
||||
|
||||
if (y<0)
|
||||
{
|
||||
y = -y;
|
||||
|
|
@ -235,7 +235,7 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
MYLCD(update)();
|
||||
|
||||
rb->sleep(HZ/timer);
|
||||
|
||||
|
||||
button = rb->button_get(false);
|
||||
switch (button)
|
||||
{
|
||||
|
|
@ -254,7 +254,7 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
if (timer>20)
|
||||
timer=5;
|
||||
break;
|
||||
|
||||
|
||||
case MOSAIQUE_RESTART:
|
||||
|
||||
sx = rb->rand() % (GFX_HEIGHT/2) + 1;
|
||||
|
|
@ -278,5 +278,3 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue