summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchotaire <chotaire@chotaire.net>2020-01-29 15:53:17 +0100
committerchotaire <chotaire@chotaire.net>2020-01-29 15:53:17 +0100
commit22372bfb1aad2ad9ee8932811537443157e03343 (patch)
tree523ec6ef30dac1a2545861d9cb8408e49be0435c
parentbc88fca2a5cfddd0f16a383a674a2ab2d41bff94 (diff)
downloadphpvirtualbox-22372bfb1aad2ad9ee8932811537443157e03343.zip
phpvirtualbox-22372bfb1aad2ad9ee8932811537443157e03343.tar.gz
phpvirtualbox-22372bfb1aad2ad9ee8932811537443157e03343.tar.bz2
Fixed VRAMSize attribute missing error
-rw-r--r--endpoints/lib/vboxconnector.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/endpoints/lib/vboxconnector.php b/endpoints/lib/vboxconnector.php
index d2626c8..c60487f 100644
--- a/endpoints/lib/vboxconnector.php
+++ b/endpoints/lib/vboxconnector.php
@@ -1914,8 +1914,8 @@ class vboxconnector {
if(@$this->settings->enableCustomIcons)
$m->setExtraData('phpvb/icon', $args['customIcon']);
- $m->VRAMSize = $args['VRAMSize'];
- $m->graphicsControllerType = $args['graphicsControllerType'];
+ $m->GraphicsAdapter->VRAMSize = $args['VRAMSize'];
+ $m->GraphicsAdapter->graphicsControllerType = $args['graphicsControllerType'];
// Video
$m->GraphicsAdapter->accelerate3DEnabled = $args['accelerate3DEnabled'];
@@ -3855,8 +3855,8 @@ class vboxconnector {
$this->session->machine->firmwareType = (string)$defaults->recommendedFirmware;
$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);
+ if(intval($defaults->recommendedVRAM) > 0) $this->session->machine->GraphicsAdapter->setVRAMSize(intval($defaults->recommendedVRAM));
+ $this->session->machine->GraphicsAdapter->setGraphicsControllerType((string)$defaults->recommendedGraphicsController);
$this->session->machine->setCpuProperty('PAE',$defaults->recommendedPAE);
// USB input devices
@@ -4224,8 +4224,8 @@ class vboxconnector {
'CPUCount' => $m->CPUCount,
'HPETEnabled' => $m->HPETEnabled,
'memorySize' => $m->memorySize,
- 'VRAMSize' => $m->VRAMSize,
- 'graphicsControllerType' => (string)$m->graphicsControllerType,
+ 'VRAMSize' => $m->GraphicsAdapter->VRAMSize,
+ 'graphicsControllerType' => (string)$m->GraphicsAdapter->graphicsControllerType,
'pointingHIDType' => (string)$m->pointingHIDType,
'keyboardHIDType' => (string)$m->keyboardHIDType,
'accelerate3DEnabled' => $m->GraphicsAdapter->accelerate3DEnabled,