summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-07-19 09:24:29 +0000
committerJens Arnold <amiconn@rockbox.org>2005-07-19 09:24:29 +0000
commit82ea7c3bacd0b5308e7f0b1d8f35a4e3e13e54f7 (patch)
treec26486e3dc90d2e49e9407c32c09aa6c5e2b34ec /apps/plugins
parent144fc69a9f774aa3c0542ee075055bce87f28b14 (diff)
downloadrockbox-82ea7c3bacd0b5308e7f0b1d8f35a4e3e13e54f7.tar.gz
rockbox-82ea7c3bacd0b5308e7f0b1d8f35a4e3e13e54f7.zip
Renamed MAX_LEVEL to LCD_MAX_LEVEL to match the naming scheme. Preparations for colour LCD support.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7194 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/bounce.c4
-rw-r--r--apps/plugins/cube.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/bounce.c b/apps/plugins/bounce.c
index 8ac4202ab1..c3bea8e14f 100644
--- a/apps/plugins/bounce.c
+++ b/apps/plugins/bounce.c
@@ -284,7 +284,7 @@ static void addclock(void)
284#if LCD_DEPTH > 1 284#if LCD_DEPTH > 1
285static const int face_colors[] = 285static const int face_colors[] =
286{ 286{
287 0, 2*MAX_LEVEL/3, MAX_LEVEL/3 287 0, 2*LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3
288}; 288};
289#endif 289#endif
290 290
@@ -451,7 +451,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
451 451
452 len = 1; 452 len = 1;
453 rb->lcd_getstringsize(off, &w, &h); 453 rb->lcd_getstringsize(off, &w, &h);
454 454
455 /* Get horizontel centering for text */ 455 /* Get horizontel centering for text */
456 len *= w; 456 len *= w;
457 if (len%2 != 0) 457 if (len%2 != 0)
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c
index 10694b3bd2..afb2b88628 100644
--- a/apps/plugins/cube.c
+++ b/apps/plugins/cube.c
@@ -154,7 +154,7 @@ static const struct face faces[6] =
154#if LCD_DEPTH > 1 154#if LCD_DEPTH > 1
155static const int face_colors[6] = 155static const int face_colors[6] =
156{ 156{
157 2*MAX_LEVEL/3, 2*MAX_LEVEL/3, MAX_LEVEL/3, MAX_LEVEL/3, 0, 0 157 2*LCD_MAX_LEVEL/3, 2*LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3, 0, 0
158}; 158};
159#endif 159#endif
160 160