summaryrefslogtreecommitdiffstats
path: root/apps/language.c
diff options
context:
space:
mode:
authorTomer Shalev <shalev.tomer@gmail.com>2009-10-05 21:13:55 +0000
committerTomer Shalev <shalev.tomer@gmail.com>2009-10-05 21:13:55 +0000
commitb0a99383211c4d6aaa8558978dc6d617b018a9c7 (patch)
treefa92234c262cd8431c4e2e76511a8fb946273d18 /apps/language.c
parent5abd9686f47c4e890677b4c9cb0d8f750642b5da (diff)
downloadrockbox-b0a99383211c4d6aaa8558978dc6d617b018a9c7.tar.gz
rockbox-b0a99383211c4d6aaa8558978dc6d617b018a9c7.tar.bz2
rockbox-b0a99383211c4d6aaa8558978dc6d617b018a9c7.zip
Add rtl flagging to viewport_set_defaults(), and ensure that
viewportmanager_theme_changed() is called during font loading git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22971 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/language.c')
-rw-r--r--apps/language.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/language.c b/apps/language.c
index 0c6245f08c..fad136e479 100644
--- a/apps/language.c
+++ b/apps/language.c
@@ -25,6 +25,7 @@
#include "lang.h"
#include "debug.h"
#include "string.h"
+#include "viewport.h"
/* The following header is generated by the build system and only defines
MAX_LANGUAGE_SIZE to be the size of the largest currently available
@@ -106,7 +107,15 @@ int lang_load(const char *filename)
retcode = 3;
}
close(fd);
- lang_options = (retcode ? 0 : lang_header[3]);
+ if (retcode)
+ {
+ lang_options = 0;
+ }
+ else
+ {
+ lang_options = lang_header[3];
+ viewportmanager_theme_changed(THEME_UI_VIEWPORT);
+ }
return retcode;
}