Skip to content

Commit f83122b

Browse files
committed
Added selection of graphics controller (by pasha1st)
1 parent 9871f24 commit f83122b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

endpoints/lib/vboxconnector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,6 +1913,7 @@ public function remote_machineSave($args) {
19131913
$m->setExtraData('phpvb/icon', $args['customIcon']);
19141914

19151915
$m->VRAMSize = $args['VRAMSize'];
1916+
$m->graphicsControllerType = $args['graphicsControllerType'];
19161917

19171918
// Video
19181919
$m->accelerate3DEnabled = $args['accelerate3DEnabled'];
@@ -3843,6 +3844,7 @@ public function remote_machineCreate($args) {
38433844
$this->session->machine->chipsetType = (string)$defaults->recommendedChipset;
38443845
$this->session->machine->ClipboardMode = 'Disabled';
38453846
if(intval($defaults->recommendedVRAM) > 0) $this->session->machine->VRAMSize = intval($defaults->recommendedVRAM);
3847+
$this->session->machine->setGraphicsControllerType((string)$defaults->recommendedGraphicsController);
38463848
$this->session->machine->setCpuProperty('PAE',$defaults->recommendedPAE);
38473849

38483850
// USB input devices
@@ -4211,6 +4213,7 @@ private function _machineGetDetails(&$m) {
42114213
'HPETEnabled' => $m->HPETEnabled,
42124214
'memorySize' => $m->memorySize,
42134215
'VRAMSize' => $m->VRAMSize,
4216+
'graphicsControllerType' => (string)$m->graphicsControllerType,
42144217
'pointingHIDType' => (string)$m->pointingHIDType,
42154218
'keyboardHIDType' => (string)$m->keyboardHIDType,
42164219
'accelerate3DEnabled' => $m->accelerate3DEnabled,

0 commit comments

Comments
 (0)