Refactor -display configuration build

This commit is contained in:
Martin Wimpress 2020-03-20 20:37:11 +00:00
parent 8bacffc65b
commit b9e6558bd6
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 1 additions and 5 deletions

View File

@ -165,11 +165,7 @@ function vm_boot() {
ram="3G"
fi
echo " - RAM: ${ram}"
# Determine what display to use
local display="-display ${UI},gl=${GL}"
echo " - UI: ${UI}"
echo " - GL: ${GL}"
echo " - VIRGL: ${VIRGL}"
local xres=1152
@ -235,7 +231,7 @@ function vm_boot() {
-object rng-random,id=rng0,filename=/dev/urandom \
-device virtio-rng-pci,rng=rng0 \
-device virtio-vga,virgl=${VIRGL},xres=${xres},yres=${yres} \
${display} ${STATUSQUO}\
-display ${UI},gl=${GL} ${STATUSQUO} \
"$@"
}