summaryrefslogtreecommitdiffstats
path: root/apps/plugins/snow.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-06-24 22:33:21 +0000
committerJens Arnold <amiconn@rockbox.org>2005-06-24 22:33:21 +0000
commit04daef17a1d180c68888c29d11a1b9087e9ace32 (patch)
treef2d794c196981fc605880e3bbb4447edbaba5f50 /apps/plugins/snow.c
parent0e935bdf01aff1e3bc66221c9a0fcc80f935c3d6 (diff)
downloadrockbox-04daef17a1d180c68888c29d11a1b9087e9ace32.tar.gz
rockbox-04daef17a1d180c68888c29d11a1b9087e9ace32.tar.bz2
rockbox-04daef17a1d180c68888c29d11a1b9087e9ace32.zip
First part of graphics api rework. Special functions, parameter handling, pixel functions, lines and filled primitives done for black & white core, main display.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6856 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/snow.c')
-rw-r--r--apps/plugins/snow.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/snow.c b/apps/plugins/snow.c
index 0fc01eef6e..dd97abc4fb 100644
--- a/apps/plugins/snow.c
+++ b/apps/plugins/snow.c
@@ -82,8 +82,10 @@ static void snow_move(void)
for (i=0; i<NUM_PARTICLES; i++) {
if (particle_exists(i)) {
#ifdef HAVE_LCD_BITMAP
- rb->lcd_clearrect(particles[i][0],particles[i][1],
- FLAKE_WIDTH,FLAKE_WIDTH);
+ rb->lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID);
+ rb->lcd_fillrect(particles[i][0],particles[i][1],
+ FLAKE_WIDTH,FLAKE_WIDTH);
+ rb->lcd_set_drawmode(DRMODE_SOLID);
#else
pgfx_clearpixel(particles[i][0],particles[i][1]);
#endif