diff options
| author | Fred Bauer <fred.w.bauer@gmail.com> | 2011-11-19 23:34:26 +0000 |
|---|---|---|
| committer | Fred Bauer <fred.w.bauer@gmail.com> | 2011-11-19 23:34:26 +0000 |
| commit | ea7a89606cfaffb2ae2c843ea9868bd8c8dd16c9 (patch) | |
| tree | 5ff1f18c66be4c25f32e03ffadeb6bb3cb568656 /apps/gui | |
| parent | d78e05c5722356fd8ce20cdb4c40df44cc2b4d33 (diff) | |
| download | rockbox-ea7a89606cfaffb2ae2c843ea9868bd8c8dd16c9.zip rockbox-ea7a89606cfaffb2ae2c843ea9868bd8c8dd16c9.tar.gz rockbox-ea7a89606cfaffb2ae2c843ea9868bd8c8dd16c9.tar.bz2 rockbox-ea7a89606cfaffb2ae2c843ea9868bd8c8dd16c9.tar.xz | |
FS#12293 Global default glyph setting in System > Limits > Glyphs To Cache. Defaults to 250. This saves a lot of RAM while still allowing non-English users to have adequate glyph coverage.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31031 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
| -rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index ad10689..c4a96d0 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c @@ -78,7 +78,6 @@ #define WPS_ERROR_INVALID_PARAM -1 -#define GLYPHS_TO_CACHE 256 static char* skin_buffer = NULL; void skinparser_set_buffer(char* pointer) { @@ -468,7 +467,7 @@ static int parse_font_load(struct skin_element *element, if(element->params_count > 2) glyphs = get_param(element, 2)->data.number; else - glyphs = GLYPHS_TO_CACHE; + glyphs = global_settings.glyphs; if (id < 2) { DEBUGF("font id must be >= 2\n"); @@ -1742,8 +1741,7 @@ static bool skin_load_fonts(struct wps_data *data) char path[MAX_PATH]; snprintf(path, sizeof path, FONT_DIR "/%s", font->name); #ifndef __PCTOOL__ - font->id = font_load_ex(path, - font_glyphs_to_bufsize(path, skinfonts[font_id-2].glyphs)); + font->id = font_load_ex(path, 0, skinfonts[font_id-2].glyphs); #else font->id = font_load(path); |