diff options
author | Nico Huber <nico.h@gmx.de> | 2019-01-01 22:28:47 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-02-06 16:20:44 +0000 |
commit | 2bc892cf56acbce5d76f3a0c50908b44f8dc49a6 (patch) | |
tree | 07f0cec568d3505a70c2132d8ee1f68b5a5a71a4 /src/drivers/intel/gma/hires_fb/gma.adb | |
parent | b56797707541a596427d59558f5a147415ea844f (diff) | |
download | coreboot-2bc892cf56acbce5d76f3a0c50908b44f8dc49a6.tar.xz |
libgfxinit: Add options to limit framebuffer size
Add maximum width and height options and set the default to 2560x1600
(WQXGA). The framebuffer will be scaled up to the displays' native
resolutions. So this should help with tiny fonts on high-DPI displays.
For laptops, reasonable defaults can be set at the mainboard level.
Change-Id: I47fba063629260c3a2854caf7a73f1a1e933d063
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/30585
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/drivers/intel/gma/hires_fb/gma.adb')
-rw-r--r-- | src/drivers/intel/gma/hires_fb/gma.adb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/drivers/intel/gma/hires_fb/gma.adb b/src/drivers/intel/gma/hires_fb/gma.adb index bd141329bd..e3553ca3c0 100644 --- a/src/drivers/intel/gma/hires_fb/gma.adb +++ b/src/drivers/intel/gma/hires_fb/gma.adb @@ -1,3 +1,7 @@ +with CB.Config; + +use CB; + with HW.GFX; with HW.GFX.Framebuffer_Filler; with HW.GFX.GMA; @@ -60,8 +64,8 @@ is success : boolean; - min_h : pos32 := pos32'last; - min_v : pos32 := pos32'last; + min_h : pos32 := Config.LINEAR_FRAMEBUFFER_MAX_WIDTH; + min_v : pos32 := Config.LINEAR_FRAMEBUFFER_MAX_HEIGHT; begin lightup_ok := 0; |