From 3bcf8e6db8e9b30af0a1d445e6e413a332066434 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Tue, 13 May 2025 10:40:39 +0300 Subject: [PATCH] loader: loader can pick too large font (check if one side is larger) The 5e25f7b09977 still allows one side to be too large, fix it. --- stand/common/gfx_fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/common/gfx_fb.c b/stand/common/gfx_fb.c index ad38a657e23..af72ab1a4c9 100644 --- a/stand/common/gfx_fb.c +++ b/stand/common/gfx_fb.c @@ -2082,7 +2082,7 @@ gfx_get_font(teken_unit_t rows, teken_unit_t cols, teken_unit_t height, * Skip too large fonts. */ font = fl->font_data; - if (height / font->vfbd_height < rows && + if (height / font->vfbd_height < rows || width / font->vfbd_width < cols) continue;