Add multiscreen mode

Enable multiscreen with max_outputs for the virtio-vga if user configures max_outputs in the .conf file
This commit is contained in:
Matej 2022-05-22 17:47:50 +02:00
parent 187da46c3b
commit 5b1ea3451d

View File

@ -753,6 +753,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}"