diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/splash.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/gui/splash.c b/apps/gui/splash.c index 958d19a2ff..fc39621885 100644 --- a/apps/gui/splash.c +++ b/apps/gui/splash.c | |||
@@ -58,9 +58,9 @@ static void splash_internal(struct screen * screen, const char *fmt, va_list ap) | |||
58 | int x = 0; | 58 | int x = 0; |
59 | int y, i; | 59 | int y, i; |
60 | int space_w, w, h; | 60 | int space_w, w, h; |
61 | int width, height; | ||
62 | #ifdef HAVE_LCD_BITMAP | ||
63 | struct viewport vp; | 61 | struct viewport vp; |
62 | #ifdef HAVE_LCD_BITMAP | ||
63 | int width, height; | ||
64 | int maxw = 0; | 64 | int maxw = 0; |
65 | 65 | ||
66 | viewport_set_defaults(&vp, screen->screen_type); | 66 | viewport_set_defaults(&vp, screen->screen_type); |
@@ -68,6 +68,8 @@ static void splash_internal(struct screen * screen, const char *fmt, va_list ap) | |||
68 | 68 | ||
69 | screen->getstringsize(" ", &space_w, &h); | 69 | screen->getstringsize(" ", &space_w, &h); |
70 | #else /* HAVE_LCD_CHARCELLS */ | 70 | #else /* HAVE_LCD_CHARCELLS */ |
71 | vp.width = screen->lcdwidth; | ||
72 | vp.height = screen->lcdheight; | ||
71 | 73 | ||
72 | space_w = h = 1; | 74 | space_w = h = 1; |
73 | screen->double_height (false); | 75 | screen->double_height (false); |