1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jens Arnold 2005-07-19 09:24:29 +00:00
parent 144fc69a9f
commit 82ea7c3bac
8 changed files with 43 additions and 15 deletions

View file

@ -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)

View file

@ -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