summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/gui/viewport.c4
-rw-r--r--apps/language.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c
index bfdd1ce04a..1db1a810da 100644
--- a/apps/gui/viewport.c
+++ b/apps/gui/viewport.c
@@ -55,7 +55,9 @@
#include "system.h"
#include "statusbar.h"
#include "appevents.h"
+#ifdef HAVE_LCD_BITMAP
#include "language.h"
+#endif
static int statusbar_enabled = 0;
@@ -148,8 +150,10 @@ void viewport_set_defaults(struct viewport *vp, enum screen_type screen)
#endif
viewport_set_fullscreen(vp, screen);
+#ifdef HAVE_LCD_BITMAP
vp->flags &= ~VP_IS_RTL;
vp->flags |= lang_is_rtl() ? VP_IS_RTL : 0;
+#endif
}
void viewportmanager_init(void)
diff --git a/apps/language.c b/apps/language.c
index fad136e479..0737a481be 100644
--- a/apps/language.c
+++ b/apps/language.c
@@ -25,7 +25,9 @@
#include "lang.h"
#include "debug.h"
#include "string.h"
+#ifdef HAVE_LCD_BITMAP
#include "viewport.h"
+#endif
/* The following header is generated by the build system and only defines
MAX_LANGUAGE_SIZE to be the size of the largest currently available
@@ -114,7 +116,9 @@ int lang_load(const char *filename)
else
{
lang_options = lang_header[3];
+#ifdef HAVE_LCD_BITMAP
viewportmanager_theme_changed(THEME_UI_VIEWPORT);
+#endif
}
return retcode;
}