summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZakk Roberts <midk@rockbox.org>2006-03-21 08:27:30 +0000
committerZakk Roberts <midk@rockbox.org>2006-03-21 08:27:30 +0000
commit16f7aa76d049681f1aa3b3ca778b1d2be77d2231 (patch)
tree7517fc63869c048ec3b2b542c50b9e03cc17ecbb
parentb26fd8c89dedab414f4a83cabedc7a8b21e0bfbe (diff)
downloadrockbox-16f7aa76d049681f1aa3b3ca778b1d2be77d2231.tar.gz
rockbox-16f7aa76d049681f1aa3b3ca778b1d2be77d2231.zip
FPS setting now LCD-specific and raised for a number of models - much smoother animations on the iPod 5G/Nano - probably smoother on the iRivers as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9148 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xapps/plugins/bubbles.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c
index 9e523fa744..f40f91ee58 100755
--- a/apps/plugins/bubbles.c
+++ b/apps/plugins/bubbles.c
@@ -43,9 +43,6 @@ PLUGIN_HEADER
43#define BB_WIDTH 8 43#define BB_WIDTH 8
44#define BB_LEVEL_HEIGHT BB_HEIGHT-2 44#define BB_LEVEL_HEIGHT BB_HEIGHT-2
45 45
46/* animation fps */
47#define MAX_FPS 20
48
49/* various amount */ 46/* various amount */
50#define NUM_SCORES 10 47#define NUM_SCORES 10
51#define NUM_LEVELS 100 48#define NUM_LEVELS 100
@@ -109,6 +106,7 @@ PLUGIN_HEADER
109#define XOFS 72 106#define XOFS 72
110#define ROW_HEIGHT 18 107#define ROW_HEIGHT 18
111#define ROW_INDENT 13 108#define ROW_INDENT 13
109#define MAX_FPS 40
112 110
113/* 16x16 bubbles (H300, iPod Color) */ 111/* 16x16 bubbles (H300, iPod Color) */
114#elif (LCD_HEIGHT == 176) && (LCD_WIDTH == 220) 112#elif (LCD_HEIGHT == 176) && (LCD_WIDTH == 220)
@@ -117,6 +115,7 @@ PLUGIN_HEADER
117#define XOFS 46 115#define XOFS 46
118#define ROW_HEIGHT 14 116#define ROW_HEIGHT 14
119#define ROW_INDENT 8 117#define ROW_INDENT 8
118#define MAX_FPS 30
120 119
121/* 16x16 bubbles (Gigabeat) */ 120/* 16x16 bubbles (Gigabeat) */
122#elif (LCD_HEIGHT == 320) && (LCD_WIDTH == 240) 121#elif (LCD_HEIGHT == 320) && (LCD_WIDTH == 240)
@@ -125,6 +124,7 @@ PLUGIN_HEADER
125#define XOFS 56 124#define XOFS 56
126#define ROW_HEIGHT 14 125#define ROW_HEIGHT 14
127#define ROW_INDENT 8 126#define ROW_INDENT 8
127#define MAX_FPS 20
128 128
129/* 12x12 bubbles (iPod Nano) */ 129/* 12x12 bubbles (iPod Nano) */
130#elif (LCD_HEIGHT == 132) && (LCD_WIDTH == 176) 130#elif (LCD_HEIGHT == 132) && (LCD_WIDTH == 176)
@@ -133,6 +133,7 @@ PLUGIN_HEADER
133#define XOFS 40 133#define XOFS 40
134#define ROW_HEIGHT 10 134#define ROW_HEIGHT 10
135#define ROW_INDENT 6 135#define ROW_INDENT 6
136#define MAX_FPS 40
136 137
137/* 12x12 bubbles (H100, iAudio X5, iPod 3G, iPod 4G grayscale) */ 138/* 12x12 bubbles (H100, iAudio X5, iPod 3G, iPod 4G grayscale) */
138#elif (LCD_HEIGHT == 128) && (LCD_WIDTH == 160) 139#elif (LCD_HEIGHT == 128) && (LCD_WIDTH == 160)
@@ -141,6 +142,7 @@ PLUGIN_HEADER
141#define XOFS 33 142#define XOFS 33
142#define ROW_HEIGHT 10 143#define ROW_HEIGHT 10
143#define ROW_INDENT 6 144#define ROW_INDENT 6
145#define MAX_FPS 30
144 146
145#else 147#else
146 #error BUBBLES: Unsupported LCD type 148 #error BUBBLES: Unsupported LCD type