Changeset 81964 in vbox for trunk/src/VBox/Frontends/VBoxSDL
- Timestamp:
- Nov 18, 2019 8:42:02 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 134761
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r81537 r81964 1457 1457 1458 1458 ComPtr<IMachine> pMachine; 1459 ComPtr<IGraphicsAdapter> pGraphicsAdapter; 1459 1460 1460 1461 rc = pVirtualBoxClient.createInprocObject(CLSID_VirtualBoxClient); … … 1950 1951 } 1951 1952 1953 rc = gpMachine->COMGETTER(GraphicsAdapter)(pGraphicsAdapter.asOutParam()); 1954 if (rc != S_OK) 1955 { 1956 RTPrintf("Error: could not get graphics adapter object\n"); 1957 goto leave; 1958 } 1959 1952 1960 if (vramSize) 1953 1961 { 1954 rc = gpMachine->COMSETTER(VRAMSize)(vramSize);1962 rc = pGraphicsAdapter->COMSETTER(VRAMSize)(vramSize); 1955 1963 if (rc != S_OK) 1956 1964 { 1957 gpMachine->COMGETTER(VRAMSize)((ULONG*)&vramSize);1965 pGraphicsAdapter->COMGETTER(VRAMSize)((ULONG*)&vramSize); 1958 1966 RTPrintf("Error: could not set VRAM size, using current setting of %d MBytes\n", vramSize); 1959 1967 } … … 1976 1984 goto leave; 1977 1985 1978 gpMachine->COMGETTER(MonitorCount)(&gcMonitors);1986 pGraphicsAdapter->COMGETTER(MonitorCount)(&gcMonitors); 1979 1987 if (gcMonitors > 64) 1980 1988 gcMonitors = 64;
Note:
See TracChangeset
for help on using the changeset viewer.