libpayload: video: Add support for font scaling with a factor

This introduces support for font scaling with a factor provided via
Kconfig. In practice, the font itself is not scaled at any point in
memory and only the logic to determine whether a pixel should be filled
or not is changed.

Thus, it should not significantly impact either the access time or
memory use.

Change-Id: Idff210617c9ec08c6034aef107cfdb34c7cdf029
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Reviewed-on: https://review.coreboot.org/20709
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
Paul Kocialkowski
2017-07-23 16:05:47 +03:00
committed by Martin Roth
parent 1c0b603673
commit d85e485c58
5 changed files with 24 additions and 7 deletions

View File

@ -238,7 +238,7 @@ static int corebootfb_init(void)
if (fbaddr == 0)
return -1;
font_init();
font_init(FI->x_resolution);
coreboot_video_console.columns = FI->x_resolution / font_width;
coreboot_video_console.rows = FI->y_resolution / font_height;