summaryrefslogtreecommitdiff
path: root/apps
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
parent144fc69a9f774aa3c0542ee075055bce87f28b14 (diff)
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')
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugins/bounce.c4
-rw-r--r--apps/plugins/cube.c2
-rw-r--r--apps/screens.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index bf69dfbc86..e298b55b23 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -412,7 +412,7 @@ int plugin_load(const char* plugin, void* parameter)
button_clear_queue();
#ifdef HAVE_LCD_BITMAP
#if LCD_DEPTH > 1
- lcd_set_drawinfo(DRMODE_SOLID, 0, MAX_LEVEL);
+ lcd_set_drawinfo(DRMODE_SOLID, 0, LCD_MAX_LEVEL);
#else
lcd_set_drawmode(DRMODE_SOLID);
#endif
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)
#if LCD_DEPTH > 1
static const int face_colors[] =
{
- 0, 2*MAX_LEVEL/3, MAX_LEVEL/3
+ 0, 2*LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3
};
#endif
@@ -451,7 +451,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
len = 1;
rb->lcd_getstringsize(off, &w, &h);
-
+
/* Get horizontel centering for text */
len *= w;
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] =
#if LCD_DEPTH > 1
static const int face_colors[6] =
{
- 2*MAX_LEVEL/3, 2*MAX_LEVEL/3, MAX_LEVEL/3, MAX_LEVEL/3, 0, 0
+ 2*LCD_MAX_LEVEL/3, 2*LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3, 0, 0
};
#endif
diff --git a/apps/screens.c b/apps/screens.c
index f761919d35..a51d83fed3 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -855,7 +855,7 @@ void splash(int ticks, /* how long the splash is displayed */
int xx = (LCD_WIDTH-maxw)/2 - 2;
/* The new graphics routines handle clipping, so no need to check */
#if LCD_DEPTH > 1
- lcd_set_background(MAX_LEVEL-1);
+ lcd_set_background(LCD_MAX_LEVEL-1);
#endif
lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID);
lcd_fillrect(xx, y-2, maxw+4, LCD_HEIGHT-y*2+4);
@@ -903,7 +903,7 @@ void splash(int ticks, /* how long the splash is displayed */
next = strtok_r(NULL, " ", &store);
}
#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH > 1)
- lcd_set_background(MAX_LEVEL);
+ lcd_set_background(LCD_MAX_LEVEL);
#endif
lcd_update();