aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/console
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/console')
-rw-r--r--drivers/video/console/fonts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/console/fonts.c b/drivers/video/console/fonts.c
index a6828d0a4c56..96979c377518 100644
--- a/drivers/video/console/fonts.c
+++ b/drivers/video/console/fonts.c
@@ -133,8 +133,8 @@ const struct font_desc *get_default_font(int xres, int yres, u32 font_w,
133 if ((yres < 400) == (f->height <= 8)) 133 if ((yres < 400) == (f->height <= 8))
134 c += 1000; 134 c += 1000;
135 135
136 if (!(font_w & (1 << (f->width - 1))) || 136 if ((font_w & (1 << (f->width - 1))) &&
137 !(font_w & (1 << (f->height - 1)))) 137 (font_h & (1 << (f->height - 1))))
138 c += 1000; 138 c += 1000;
139 139
140 if (c > cc) { 140 if (c > cc) {