mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
fbcon: font setting should check limitation of driver
fbcon_set_font() will now check if the new font dimensions can be drawn by the driver (by checking pixmap.blit_x and blit_y). Similarly, add 2 new parameters to get_default_font(), font_w and font_h, to further aid in the font selection process. Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
bf26ad72a6
commit
2d2699d984
4 changed files with 26 additions and 6 deletions
|
@ -49,7 +49,8 @@ extern const struct font_desc *find_font(const char *name);
|
|||
|
||||
/* Get the default font for a specific screen size */
|
||||
|
||||
extern const struct font_desc *get_default_font(int xres, int yres);
|
||||
extern const struct font_desc *get_default_font(int xres, int yres,
|
||||
u32 font_w, u32 font_h);
|
||||
|
||||
/* Max. length for the name of a predefined font */
|
||||
#define MAX_FONT_NAME 32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue