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/screen_access.h | |
parent | e682143af578d9643f45712f0dcbcc13e94597d4 (diff) | |
download | rockbox-3c1e9ca55892ae342c9efb396cd9f49f3d403a5a.tar.gz rockbox-3c1e9ca55892ae342c9efb396cd9f49f3d403a5a.tar.bz2 rockbox-3c1e9ca55892ae342c9efb396cd9f49f3d403a5a.zip |
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/screen_access.h')
-rw-r--r-- | apps/screen_access.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/apps/screen_access.h b/apps/screen_access.h index d800c31489..c76d2b1c86 100644 --- a/apps/screen_access.h +++ b/apps/screen_access.h @@ -60,12 +60,12 @@ struct screen enum screen_type screen_type; int lcdwidth, lcdheight; int depth; - int nb_lines; + int (*getnblines)(void); #ifdef HAVE_LCD_BITMAP int pixel_format; #endif - int char_width; - int char_height; + int (*getcharwidth)(void); + int (*getcharheight)(void); bool is_color; #if (CONFIG_LED == LED_VIRTUAL) || defined(HAVE_REMOTE_LCD) bool has_disk_led; @@ -166,11 +166,6 @@ void screen_clear_area(struct screen * display, int xstart, int ystart, #endif /* - * Initializes the whole screen_access api - */ -extern void screen_access_init(void); - -/* * exported screens array that should be used * by each app that wants to write to access display */ |