diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2007-05-08 03:39:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:31 -0400 |
commit | 2d2699d984924890f6dac8cf51c3b6311f56816c (patch) | |
tree | bd8f50392ac6918589c6069177b89172f2263916 /drivers/video/console/sticore.c | |
parent | bf26ad72a60c0009a99179b449a43daa6bf4b4f6 (diff) |
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>
Diffstat (limited to 'drivers/video/console/sticore.c')
-rw-r--r-- | drivers/video/console/sticore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/console/sticore.c b/drivers/video/console/sticore.c index 88e7038eab88..717b360d0415 100644 --- a/drivers/video/console/sticore.c +++ b/drivers/video/console/sticore.c | |||
@@ -495,7 +495,7 @@ sti_select_fbfont(struct sti_cooked_rom *cooked_rom, const char *fbfont_name) | |||
495 | return NULL; | 495 | return NULL; |
496 | fbfont = find_font(fbfont_name); | 496 | fbfont = find_font(fbfont_name); |
497 | if (!fbfont) | 497 | if (!fbfont) |
498 | fbfont = get_default_font(1024,768); | 498 | fbfont = get_default_font(1024,768, ~(u32)0, ~(u32)0); |
499 | if (!fbfont) | 499 | if (!fbfont) |
500 | return NULL; | 500 | return NULL; |
501 | 501 | ||