diff options
Diffstat (limited to 'apps/screens.c')
-rw-r--r-- | apps/screens.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/screens.c b/apps/screens.c index 87a9869196..79f07f92c2 100644 --- a/apps/screens.c +++ b/apps/screens.c | |||
@@ -562,7 +562,11 @@ void splash(int ticks, /* how long */ | |||
562 | va_end( ap ); | 562 | va_end( ap ); |
563 | 563 | ||
564 | if(center) | 564 | if(center) |
565 | { | ||
565 | x = (LCD_WIDTH-widths[0])/2; | 566 | x = (LCD_WIDTH-widths[0])/2; |
567 | if(x < 0) | ||
568 | x = 0; | ||
569 | } | ||
566 | 570 | ||
567 | #ifdef HAVE_LCD_BITMAP | 571 | #ifdef HAVE_LCD_BITMAP |
568 | /* If we center the display and it wouldn't cover the full screen, | 572 | /* If we center the display and it wouldn't cover the full screen, |