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>
This commit is contained in:
parent
5dfe6c9cf7
commit
5276ebaafb
4
quickemu
4
quickemu
|
|
@ -1300,8 +1300,8 @@ function configure_display() {
|
||||||
VIDEO="-device ramfb ${VIDEO}"
|
VIDEO="-device ramfb ${VIDEO}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Try and coerce the display resolution for Linux guests only.
|
# Set display resolution for devices that support xres/yres parameters
|
||||||
if [ "${DISPLAY_DEVICE}" != "vmware-svga" ]; then
|
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}"
|
VIDEO="${VIDEO},xres=${X_RES},yres=${Y_RES}"
|
||||||
echo " @ (${X_RES} x ${Y_RES})"
|
echo " @ (${X_RES} x ${Y_RES})"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue