summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/device/Kconfig16
-rw-r--r--src/drivers/intel/gma/hires_fb/gma.adb8
2 files changed, 22 insertions, 2 deletions
diff --git a/src/device/Kconfig b/src/device/Kconfig
index 85f1d65719..b90b15f6b3 100644
--- a/src/device/Kconfig
+++ b/src/device/Kconfig
@@ -445,6 +445,22 @@ config LINEAR_FRAMEBUFFER
def_bool y
depends on VBE_LINEAR_FRAMEBUFFER || GENERIC_LINEAR_FRAMEBUFFER
+config LINEAR_FRAMEBUFFER_MAX_WIDTH
+ int "Maximum width in pixels"
+ depends on LINEAR_FRAMEBUFFER && MAINBOARD_USE_LIBGFXINIT
+ default 2560
+ help
+ Set the maximum width of the framebuffer. This may help with
+ default fonts too tiny for high-resolution displays.
+
+config LINEAR_FRAMEBUFFER_MAX_HEIGHT
+ int "Maximum height in pixels"
+ depends on LINEAR_FRAMEBUFFER && MAINBOARD_USE_LIBGFXINIT
+ default 1600
+ help
+ Set the maximum height of the framebuffer. This may help with
+ default fonts too tiny for high-resolution displays.
+
endmenu # "Display"
config SMBUS_HAS_AUX_CHANNELS
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;