summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/screens.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/screens.c b/apps/screens.c
index be2744f..28d9a48 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -773,8 +773,11 @@ void splash(int ticks, /* how long the splash is displayed */
if(y > (LCD_HEIGHT-h))
/* STOP */
break;
- if(center)
+ if(center) {
x = (LCD_WIDTH-widths[line])/2;
+ if(x < 0)
+ x = 0;
+ }
else
x=0;
}