summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchotaire <chotaire@chotaire.net>2019-09-07 14:23:13 +0200
committerchotaire <chotaire@chotaire.net>2019-09-07 14:23:13 +0200
commitf83122b7b473fbbbc3e0d3f62aaadea4462c6ebc (patch)
tree4eea4d3bb78a3e96199ffcf9b94840069da24678
parent9871f2445fa8c2095cacc93a8708cc4adc495198 (diff)
downloadphpvirtualbox-f83122b7b473fbbbc3e0d3f62aaadea4462c6ebc.zip
phpvirtualbox-f83122b7b473fbbbc3e0d3f62aaadea4462c6ebc.tar.gz
phpvirtualbox-f83122b7b473fbbbc3e0d3f62aaadea4462c6ebc.tar.bz2
Added selection of graphics controller (by pasha1st)
-rw-r--r--endpoints/lib/vboxconnector.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/endpoints/lib/vboxconnector.php b/endpoints/lib/vboxconnector.php
index c2f8804..532f025 100644
--- a/endpoints/lib/vboxconnector.php
+++ b/endpoints/lib/vboxconnector.php
@@ -1913,6 +1913,7 @@ class vboxconnector {
$m->setExtraData('phpvb/icon', $args['customIcon']);
$m->VRAMSize = $args['VRAMSize'];
+ $m->graphicsControllerType = $args['graphicsControllerType'];
// Video
$m->accelerate3DEnabled = $args['accelerate3DEnabled'];
@@ -3843,6 +3844,7 @@ class vboxconnector {
$this->session->machine->chipsetType = (string)$defaults->recommendedChipset;
$this->session->machine->ClipboardMode = 'Disabled';
if(intval($defaults->recommendedVRAM) > 0) $this->session->machine->VRAMSize = intval($defaults->recommendedVRAM);
+ $this->session->machine->setGraphicsControllerType((string)$defaults->recommendedGraphicsController);
$this->session->machine->setCpuProperty('PAE',$defaults->recommendedPAE);
// USB input devices
@@ -4211,6 +4213,7 @@ class vboxconnector {
'HPETEnabled' => $m->HPETEnabled,
'memorySize' => $m->memorySize,
'VRAMSize' => $m->VRAMSize,
+ 'graphicsControllerType' => (string)$m->graphicsControllerType,
'pointingHIDType' => (string)$m->pointingHIDType,
'keyboardHIDType' => (string)$m->keyboardHIDType,
'accelerate3DEnabled' => $m->accelerate3DEnabled,