mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
This commit is contained in:
parent
e682143af5
commit
3c1e9ca558
9 changed files with 124 additions and 86 deletions
|
@ -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;
|
||||
|
@ -165,11 +165,6 @@ void screen_clear_area(struct screen * display, int xstart, int ystart,
|
|||
int width, int height);
|
||||
#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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue