Skip to content

Commit 5276eba

Browse files
committed
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 <martin@wimpress.org>
1 parent 5dfe6c9 commit 5276eba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quickemu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,8 +1300,8 @@ function configure_display() {
13001300
VIDEO="-device ramfb ${VIDEO}"
13011301
fi
13021302

1303-
# Try and coerce the display resolution for Linux guests only.
1304-
if [ "${DISPLAY_DEVICE}" != "vmware-svga" ]; then
1303+
# Set display resolution for devices that support xres/yres parameters
1304+
if [[ "${DISPLAY_DEVICE}" =~ ^(virtio-(vga|vga-gl|gpu|gpu-gl|gpu-pci|gpu-gl-pci)|qxl|qxl-vga|bochs-display)(,|$) ]]; then
13051305
VIDEO="${VIDEO},xres=${X_RES},yres=${Y_RES}"
13061306
echo " @ (${X_RES} x ${Y_RES})"
13071307
else

0 commit comments

Comments
 (0)