Skip to content

Commit 22372bf

Browse files
committed
Fixed VRAMSize attribute missing error
1 parent bc88fca commit 22372bf

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

endpoints/lib/vboxconnector.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,8 +1914,8 @@ public function remote_machineSave($args) {
19141914
if(@$this->settings->enableCustomIcons)
19151915
$m->setExtraData('phpvb/icon', $args['customIcon']);
19161916

1917-
$m->VRAMSize = $args['VRAMSize'];
1918-
$m->graphicsControllerType = $args['graphicsControllerType'];
1917+
$m->GraphicsAdapter->VRAMSize = $args['VRAMSize'];
1918+
$m->GraphicsAdapter->graphicsControllerType = $args['graphicsControllerType'];
19191919

19201920
// Video
19211921
$m->GraphicsAdapter->accelerate3DEnabled = $args['accelerate3DEnabled'];
@@ -3855,8 +3855,8 @@ public function remote_machineCreate($args) {
38553855
$this->session->machine->firmwareType = (string)$defaults->recommendedFirmware;
38563856
$this->session->machine->chipsetType = (string)$defaults->recommendedChipset;
38573857
$this->session->machine->ClipboardMode = 'Disabled';
3858-
if(intval($defaults->recommendedVRAM) > 0) $this->session->machine->VRAMSize = intval($defaults->recommendedVRAM);
3859-
$this->session->machine->setGraphicsControllerType((string)$defaults->recommendedGraphicsController);
3858+
if(intval($defaults->recommendedVRAM) > 0) $this->session->machine->GraphicsAdapter->setVRAMSize(intval($defaults->recommendedVRAM));
3859+
$this->session->machine->GraphicsAdapter->setGraphicsControllerType((string)$defaults->recommendedGraphicsController);
38603860
$this->session->machine->setCpuProperty('PAE',$defaults->recommendedPAE);
38613861

38623862
// USB input devices
@@ -4224,8 +4224,8 @@ private function _machineGetDetails(&$m) {
42244224
'CPUCount' => $m->CPUCount,
42254225
'HPETEnabled' => $m->HPETEnabled,
42264226
'memorySize' => $m->memorySize,
4227-
'VRAMSize' => $m->VRAMSize,
4228-
'graphicsControllerType' => (string)$m->graphicsControllerType,
4227+
'VRAMSize' => $m->GraphicsAdapter->VRAMSize,
4228+
'graphicsControllerType' => (string)$m->GraphicsAdapter->graphicsControllerType,
42294229
'pointingHIDType' => (string)$m->pointingHIDType,
42304230
'keyboardHIDType' => (string)$m->keyboardHIDType,
42314231
'accelerate3DEnabled' => $m->GraphicsAdapter->accelerate3DEnabled,

0 commit comments

Comments
 (0)