forked from len0rd/rockbox
made the jackpot plugin use the new common sprite functions, cosmetic change to the clock plugin's code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14182 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
14d276121a
commit
1d91334428
2 changed files with 13 additions and 24 deletions
|
@ -174,16 +174,17 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter){
|
|||
break;
|
||||
|
||||
default:
|
||||
redraw=false;
|
||||
if(rb->default_event_handler_ex(button, cleanup, NULL)
|
||||
== SYS_USB_CONNECTED)
|
||||
return PLUGIN_USB_CONNECTED;
|
||||
if(time.second != last_second){
|
||||
last_second=time.second;
|
||||
redraw=true;
|
||||
}else
|
||||
redraw=false;
|
||||
break;
|
||||
}
|
||||
if(time.second != last_second){
|
||||
last_second=time.second;
|
||||
redraw=true;
|
||||
}
|
||||
|
||||
if(redraw){
|
||||
clock_draw_set_colors();
|
||||
FOR_NB_SCREENS(i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue