Use $QEMU_VER for version based conditionals

This commit is contained in:
Martin Wimpress 2020-03-19 23:18:49 +00:00
parent 75f108ebfd
commit 27e5b6a174
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 1 additions and 2 deletions

View File

@ -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