Add multiscreen mode (#473)

Enable multiscreen with max_outputs for the virtio-vga if user configures max_outputs in the .conf file
This commit is contained in:
MatejSpindler 2022-08-01 10:23:19 +02:00 committed by GitHub
parent e8b1b7cb3e
commit 7ce97daf27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -776,6 +776,11 @@ function vm_boot() {
ati-vga|cirrus-vga|VGA) VIDEO="${VIDEO},vgamem_mb=64";;
esac
# Configure multiscreen if max_outputs was provided in the .conf file
if [ -v max_outputs ]; then
VIDEO="${VIDEO},max_outputs=${max_outputs}"
fi
# Add fullscreen options
VIDEO="${VIDEO} ${FULLSCREEN}"