diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-02-09 00:33:23 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-02-09 00:33:23 +0000 |
commit | 485a9cfbc9d924286f8b7566e7bd78f4b8f95c99 (patch) | |
tree | 062137a3f9f4fe0996309e20de202a2c7b037584 /apps/plugins | |
parent | f24bd466f28d08098244843172d743864c3f1723 (diff) | |
download | rockbox-485a9cfbc9d924286f8b7566e7bd78f4b8f95c99.tar.gz rockbox-485a9cfbc9d924286f8b7566e7bd78f4b8f95c99.zip |
Variable screen resolution.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5860 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/snow.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ | |||
20 | 20 | ||
21 | #ifdef HAVE_LCD_BITMAP | 21 | #ifdef HAVE_LCD_BITMAP |
22 | 22 | ||
23 | #define NUM_PARTICLES 100 | 23 | #define NUM_PARTICLES (LCD_WIDTH * LCD_HEIGHT / 72) |
24 | 24 | ||
25 | static short particles[NUM_PARTICLES][2]; | 25 | static short particles[NUM_PARTICLES][2]; |
26 | static struct plugin_api* rb; | 26 | static struct plugin_api* rb; |
@@ -28,7 +28,7 @@ static struct plugin_api* rb; | |||
28 | static bool particle_exists(int particle) | 28 | static bool particle_exists(int particle) |
29 | { | 29 | { |
30 | if (particles[particle][0]>=0 && particles[particle][1]>=0 && | 30 | if (particles[particle][0]>=0 && particles[particle][1]>=0 && |
31 | particles[particle][0]<112 && particles[particle][1]<64) | 31 | particles[particle][0]<LCD_WIDTH && particles[particle][1]<LCD_HEIGHT) |
32 | return true; | 32 | return true; |
33 | else | 33 | else |
34 | return false; | 34 | return false; |
@@ -40,7 +40,7 @@ static int create_particle(void) | |||
40 | 40 | ||
41 | for (i=0; i<NUM_PARTICLES; i++) { | 41 | for (i=0; i<NUM_PARTICLES; i++) { |
42 | if (!particle_exists(i)) { | 42 | if (!particle_exists(i)) { |
43 | particles[i][0]=(rb->rand()%112); | 43 | particles[i][0]=(rb->rand()%LCD_WIDTH); |
44 | particles[i][1]=0; | 44 | particles[i][1]=0; |
45 | return i; | 45 | return i; |
46 | } | 46 | } |