From 485a9cfbc9d924286f8b7566e7bd78f4b8f95c99 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 9 Feb 2005 00:33:23 +0000 Subject: Variable screen resolution. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5860 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/snow.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps') diff --git a/apps/plugins/snow.c b/apps/plugins/snow.c index 3ef34bb8b8..b9fc340e3f 100644 --- a/apps/plugins/snow.c +++ b/apps/plugins/snow.c @@ -20,7 +20,7 @@ #ifdef HAVE_LCD_BITMAP -#define NUM_PARTICLES 100 +#define NUM_PARTICLES (LCD_WIDTH * LCD_HEIGHT / 72) static short particles[NUM_PARTICLES][2]; static struct plugin_api* rb; @@ -28,7 +28,7 @@ static struct plugin_api* rb; static bool particle_exists(int particle) { if (particles[particle][0]>=0 && particles[particle][1]>=0 && - particles[particle][0]<112 && particles[particle][1]<64) + particles[particle][0]rand()%112); + particles[i][0]=(rb->rand()%LCD_WIDTH); particles[i][1]=0; return i; } -- cgit v1.2.3