diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugin.c | 2 | ||||
-rw-r--r-- | apps/plugins/bounce.c | 4 | ||||
-rw-r--r-- | apps/plugins/cube.c | 2 | ||||
-rw-r--r-- | apps/screens.c | 4 |
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) | |||
412 | button_clear_queue(); | 412 | button_clear_queue(); |
413 | #ifdef HAVE_LCD_BITMAP | 413 | #ifdef HAVE_LCD_BITMAP |
414 | #if LCD_DEPTH > 1 | 414 | #if LCD_DEPTH > 1 |
415 | lcd_set_drawinfo(DRMODE_SOLID, 0, MAX_LEVEL); | 415 | lcd_set_drawinfo(DRMODE_SOLID, 0, LCD_MAX_LEVEL); |
416 | #else | 416 | #else |
417 | lcd_set_drawmode(DRMODE_SOLID); | 417 | lcd_set_drawmode(DRMODE_SOLID); |
418 | #endif | 418 | #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) | |||
284 | #if LCD_DEPTH > 1 | 284 | #if LCD_DEPTH > 1 |
285 | static const int face_colors[] = | 285 | static 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 |
155 | static const int face_colors[6] = | 155 | static 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 | ||
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 */ | |||
855 | int xx = (LCD_WIDTH-maxw)/2 - 2; | 855 | int xx = (LCD_WIDTH-maxw)/2 - 2; |
856 | /* The new graphics routines handle clipping, so no need to check */ | 856 | /* The new graphics routines handle clipping, so no need to check */ |
857 | #if LCD_DEPTH > 1 | 857 | #if LCD_DEPTH > 1 |
858 | lcd_set_background(MAX_LEVEL-1); | 858 | lcd_set_background(LCD_MAX_LEVEL-1); |
859 | #endif | 859 | #endif |
860 | lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); | 860 | lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); |
861 | lcd_fillrect(xx, y-2, maxw+4, LCD_HEIGHT-y*2+4); | 861 | 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 */ | |||
903 | next = strtok_r(NULL, " ", &store); | 903 | next = strtok_r(NULL, " ", &store); |
904 | } | 904 | } |
905 | #if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH > 1) | 905 | #if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH > 1) |
906 | lcd_set_background(MAX_LEVEL); | 906 | lcd_set_background(LCD_MAX_LEVEL); |
907 | #endif | 907 | #endif |
908 | lcd_update(); | 908 | lcd_update(); |
909 | 909 | ||