From 1b151955b0bc467452445c5b9acf528fb3c359bd Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 19 Aug 2022 17:49:59 +0100 Subject: [PATCH] Refactor DISPLAY_RENDERER configuration --- quickemu | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/quickemu b/quickemu index 7a259be..4a4a9bd 100755 --- a/quickemu +++ b/quickemu @@ -727,25 +727,11 @@ function vm_boot() { # Map Quickemu OUTPUT to QEMU -display case ${OUTPUT} in - gtk) - DISPLAY_RENDER="${OUTPUT},grab-on-hover=on,zoom-to-fit=off" - # GL is not working with GTK and virtio-vga - if [ "${DISPLAY_DEVICE}" == "virtio-vga" ]; then - gl="off" - fi - ;; - none|spice) - DISPLAY_RENDER="none";; - # spice-app has a bug where using spice-app,gl=off seems to enable gl, but - # if the gl param is omitted it works fine. - spice-app) - DISPLAY_RENDER="${OUTPUT}" - if [[ "${gl}" == "on" ]]; then - DISPLAY_RENDER+=",gl=on" - fi - ;; - *) - DISPLAY_RENDER="${OUTPUT},gl=${gl}";; + gtk) DISPLAY_RENDER="${OUTPUT},grab-on-hover=on,zoom-to-fit=off,gl=${gl}";; + none|spice) DISPLAY_RENDER="none";; + sdl) DISPLAY_RENDER="${OUTPUT},gl=${gl}";; + spice-app) DISPLAY_RENDER="${OUTPUT},gl=${gl}";; + *) DISPLAY_RENDER="${OUTPUT}";; esac # https://www.kraxel.org/blog/2021/05/virtio-gpu-qemu-graphics-update/