From 877a03410a048216a1802be875961d94b9b3faa5 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sat, 24 Jan 2026 20:01:31 +0000 Subject: [PATCH] fix(quickemu): set xres/yres only for devices that support them - Replace vmware-svga exclusion with explicit device regex - Apply xres/yres only to virtio-(vga|vga-gl|gpu|gpu-pci|gpu-gl-pci), qxl, qxl-vga and bochs-display - Prevent passing unsupported xres/yres params to other display devices, avoiding incorrect resolution coercion and QEMU warnings Signed-off-by: Martin Wimpress --- quickemu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickemu b/quickemu index 0d3fec60c7..8af3a5f697 100755 --- a/quickemu +++ b/quickemu @@ -1300,8 +1300,8 @@ function configure_display() { VIDEO="-device ramfb ${VIDEO}" fi - # Try and coerce the display resolution for Linux guests only. - if [ "${DISPLAY_DEVICE}" != "vmware-svga" ]; then + # Set display resolution for devices that support xres/yres parameters + if [[ "${DISPLAY_DEVICE}" =~ ^(virtio-(vga|vga-gl|gpu|gpu-gl|gpu-pci|gpu-gl-pci)|qxl|qxl-vga|bochs-display)(,|$) ]]; then VIDEO="${VIDEO},xres=${X_RES},yres=${Y_RES}" echo " @ (${X_RES} x ${Y_RES})" else