forked from len0rd/rockbox
Remote support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6499 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e86ee9a33f
commit
2ab3fae3ee
5 changed files with 100 additions and 27 deletions
|
@ -86,6 +86,13 @@ static void snow_move(void)
|
|||
FLAKE_WIDTH,FLAKE_WIDTH);
|
||||
#else
|
||||
pgfx_clearpixel(particles[i][0],particles[i][1]);
|
||||
#endif
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
if (particles[i][0] <= LCD_REMOTE_WIDTH
|
||||
&& particles[i][1] <= LCD_REMOTE_HEIGHT) {
|
||||
rb->remote_clearrect(particles[i][0],particles[i][1],
|
||||
FLAKE_WIDTH,FLAKE_WIDTH);
|
||||
}
|
||||
#endif
|
||||
switch ((rb->rand()%7)) {
|
||||
case 0:
|
||||
|
@ -109,6 +116,13 @@ static void snow_move(void)
|
|||
FLAKE_WIDTH,FLAKE_WIDTH,true);
|
||||
#else
|
||||
pgfx_drawpixel(particles[i][0],particles[i][1]);
|
||||
#endif
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
if (particles[i][0] <= LCD_REMOTE_WIDTH
|
||||
&& particles[i][1] <= LCD_REMOTE_HEIGHT) {
|
||||
rb->remote_bitmap(flake,particles[i][0],particles[i][1],
|
||||
FLAKE_WIDTH,FLAKE_WIDTH,true);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -131,6 +145,9 @@ static void snow_init(void)
|
|||
pgfx_display(8, 0);
|
||||
pgfx_clear_display();
|
||||
#endif
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
rb->remote_clear_display();
|
||||
#endif
|
||||
}
|
||||
|
||||
enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||
|
@ -154,6 +171,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
rb->lcd_update();
|
||||
#else
|
||||
pgfx_update();
|
||||
#endif
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
rb->remote_update();
|
||||
#endif
|
||||
rb->sleep(HZ/20);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue