summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/screens.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 87a9869..79f07f9 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -562,7 +562,11 @@ void splash(int ticks, /* how long */
va_end( ap );
if(center)
+ {
x = (LCD_WIDTH-widths[0])/2;
+ if(x < 0)
+ x = 0;
+ }
#ifdef HAVE_LCD_BITMAP
/* If we center the display and it wouldn't cover the full screen,