]> www.infradead.org Git - users/jedix/linux-maple.git/commit
VT: Add height parameter to con_font_get/set consw operations
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 19 Jan 2023 15:19:15 +0000 (16:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 15:28:56 +0000 (16:28 +0100)
commitffc1e089725e3f8a15ddfdce283db42f7d0fa147
treea12ea38b9de91ce77840411df3cb247537e6101a
parente34a79d0b320ea8248e1ee3482eb5c388a27d303
VT: Add height parameter to con_font_get/set consw operations

The current con_font_get/set API currently hardcodes a 32-pixel-tall
limitation, which only dates from the old VGA hardware which could not
handle taller fonts than that.

This change just adds a vpitch parameter to release this
constraint. Drivers which do not support vpitch != 32 can just return
EINVAL when it is not 32, font loading tools will revert to trying 32
and succeed.

This change makes the fbcon driver consider vpitch appropriately, thus
making it able to load large fonts.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Link: https://lore.kernel.org/r/20230119151934.932642243@ens-lyon.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c
drivers/video/console/newport_con.c
drivers/video/console/sticon.c
drivers/video/console/vgacon.c
drivers/video/fbdev/core/fbcon.c
include/linux/console.h