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:
parent
144fc69a9f
commit
82ea7c3bac
8 changed files with 43 additions and 15 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue