diff options
| author | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-09-07 20:09:11 +0000 |
|---|---|---|
| committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-09-07 20:09:11 +0000 |
| commit | 3c1e9ca55892ae342c9efb396cd9f49f3d403a5a (patch) | |
| tree | 92b4bfa29308aae41843c47350b27385fae35b11 /apps/main.c | |
| parent | e682143af578d9643f45712f0dcbcc13e94597d4 (diff) | |
| download | rockbox-3c1e9ca55892ae342c9efb396cd9f49f3d403a5a.zip rockbox-3c1e9ca55892ae342c9efb396cd9f49f3d403a5a.tar.gz rockbox-3c1e9ca55892ae342c9efb396cd9f49f3d403a5a.tar.bz2 rockbox-3c1e9ca55892ae342c9efb396cd9f49f3d403a5a.tar.xz | |
Change screens memebers char_width, char_height and nb_lines to functions returning a calculated value. Fixes FS #9361 because the values were calculated based on sysfont, not the user selected font.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18441 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main.c')
| -rw-r--r-- | apps/main.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/main.c b/apps/main.c index d59d17a..bacaa51 100644 --- a/apps/main.c +++ b/apps/main.c @@ -288,7 +288,6 @@ static void init(void) debug_init(); #endif /* Must be done before any code uses the multi-screen APi */ - screen_access_init(); gui_syncstatusbar_init(&statusbars); ata_init(); settings_reset(); @@ -404,13 +403,12 @@ static void init(void) button_init(); powermgmt_init(); - + #if CONFIG_TUNER radio_init(); #endif /* Must be done before any code uses the multi-screen APi */ - screen_access_init(); gui_syncstatusbar_init(&statusbars); #if CONFIG_CHARGING && (CONFIG_CPU == SH7034) @@ -448,11 +446,11 @@ static void init(void) #ifdef HAVE_EEPROM_SETTINGS eeprom_settings_init(); #endif - + usb_start_monitoring(); #ifndef HAVE_USBSTACK while (usb_detect() == USB_INSERTED) - { + { #ifdef HAVE_EEPROM_SETTINGS firmware_settings.disk_clean = false; #endif @@ -517,7 +515,7 @@ static void init(void) remove(TAGCACHE_STATEFILE); #endif } - + gui_sync_wps_init(); settings_apply(true); init_dircache(false); |