From 27e5b6a174bf05bfcbf492766851a289aa40a950 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Thu, 19 Mar 2020 23:18:49 +0000 Subject: [PATCH] Use $QEMU_VER for version based conditionals --- quickemu.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/quickemu.sh b/quickemu.sh index 3c0388e..e6ea0e6 100755 --- a/quickemu.sh +++ b/quickemu.sh @@ -121,8 +121,7 @@ function vm_boot() { # Determine what display to use local display="-display ${UI},gl=${GL}" - local ver=$(qemu-${ENGINE} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1) - if [ "${ver}" == "2.11.1" ]; then + if [ "${QEMU_VER}" == "2.11.1" ]; then display="-display sdl" # Fix stuttering mouse pointer when SDL backend is used. export SDL_VIDEO_X11_DGAMOUSE=0