summaryrefslogtreecommitdiffstats
path: root/apps/gui/viewport.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/viewport.c')
-rw-r--r--apps/gui/viewport.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c
index ff3a110936..bfdd1ce04a 100644
--- a/apps/gui/viewport.c
+++ b/apps/gui/viewport.c
@@ -55,7 +55,7 @@
#include "system.h"
#include "statusbar.h"
#include "appevents.h"
-
+#include "language.h"
static int statusbar_enabled = 0;
@@ -147,6 +147,9 @@ void viewport_set_defaults(struct viewport *vp, enum screen_type screen)
else
#endif
viewport_set_fullscreen(vp, screen);
+
+ vp->flags &= ~VP_IS_RTL;
+ vp->flags |= lang_is_rtl() ? VP_IS_RTL : 0;
}
void viewportmanager_init(void)