mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
This commit is contained in:
parent
5abd9686f4
commit
b0a9938321
3 changed files with 18 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue