mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02: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:
committed by
Linus Torvalds
parent
bf26ad72a6
commit
2d2699d984
@@ -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
|
||||
|
Reference in New Issue
Block a user