summaryrefslogtreecommitdiff
path: root/apps/gui/viewport.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/viewport.c')
-rw-r--r--apps/gui/viewport.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c
index 9f9cb186f5..e8ec83c640 100644
--- a/apps/gui/viewport.c
+++ b/apps/gui/viewport.c
@@ -348,41 +348,3 @@ void viewport_set_defaults(struct viewport *vp,
348#endif /* !__PCTOOL__ */ 348#endif /* !__PCTOOL__ */
349 viewport_set_fullscreen(vp, screen); 349 viewport_set_fullscreen(vp, screen);
350} 350}
351
352
353int get_viewport_default_colour(enum screen_type screen, bool fgcolour)
354{
355 (void)screen; (void)fgcolour;
356#if (LCD_DEPTH > 1) || (defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1)
357 int colour;
358 if (fgcolour)
359 {
360#if (defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1)
361 if (screen == SCREEN_REMOTE)
362 colour = REMOTE_FG_FALLBACK;
363 else
364#endif
365#if defined(HAVE_LCD_COLOR)
366 colour = global_settings.fg_color;
367#else
368 colour = FG_FALLBACK;
369#endif
370 }
371 else
372 {
373#if (defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1)
374 if (screen == SCREEN_REMOTE)
375 colour = REMOTE_BG_FALLBACK;
376 else
377#endif
378#if defined(HAVE_LCD_COLOR)
379 colour = global_settings.bg_color;
380#else
381 colour = BG_FALLBACK;
382#endif
383 }
384 return colour;
385#else
386 return 0;
387#endif /* LCD_DEPTH > 1 || LCD_REMOTE_DEPTH > 1 */
388}