summaryrefslogtreecommitdiff
path: root/src/drivers/emulation/qemu
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/emulation/qemu')
-rw-r--r--src/drivers/emulation/qemu/bochs.c3
-rw-r--r--src/drivers/emulation/qemu/cirrus.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/emulation/qemu/bochs.c b/src/drivers/emulation/qemu/bochs.c
index b4acfefcbc..1e7986cc62 100644
--- a/src/drivers/emulation/qemu/bochs.c
+++ b/src/drivers/emulation/qemu/bochs.c
@@ -106,6 +106,9 @@ static void bochs_init(device_t dev)
/* setup coreboot framebuffer */
edid.ha = width;
edid.va = height;
+ edid.x_resolution = width;
+ edid.y_resolution = height;
+ edid.bytes_per_line = width * 4;
edid.bpp = 32;
set_vbe_mode_info_valid(&edid, addr);
}
diff --git a/src/drivers/emulation/qemu/cirrus.c b/src/drivers/emulation/qemu/cirrus.c
index 9f79d31149..b4928fef32 100644
--- a/src/drivers/emulation/qemu/cirrus.c
+++ b/src/drivers/emulation/qemu/cirrus.c
@@ -330,6 +330,9 @@ static void cirrus_init(device_t dev)
struct edid edid;
edid.ha = width;
edid.va = height;
+ edid.x_resolution = width;
+ edid.y_resolution = height;
+ edid.bytes_per_line = width * 4;
edid.bpp = 32;
set_vbe_mode_info_valid(&edid, addr);
}