VirtualBox

Changeset 81964 in vbox for trunk/src/VBox/Frontends/VBoxSDL


Ignore:
Timestamp:
Nov 18, 2019 8:42:02 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134761
Message:

Main/GraphicsAdapter: Split off a few attributes from Machine interface, which affects quite a few other interfaces.
Frontends/VirtualBox+VBoxManage+VBoxSDL+VBoxShell: Adapt accordingly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r81537 r81964  
    14571457
    14581458    ComPtr<IMachine> pMachine;
     1459    ComPtr<IGraphicsAdapter> pGraphicsAdapter;
    14591460
    14601461    rc = pVirtualBoxClient.createInprocObject(CLSID_VirtualBoxClient);
     
    19501951    }
    19511952
     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
    19521960    if (vramSize)
    19531961    {
    1954         rc = gpMachine->COMSETTER(VRAMSize)(vramSize);
     1962        rc = pGraphicsAdapter->COMSETTER(VRAMSize)(vramSize);
    19551963        if (rc != S_OK)
    19561964        {
    1957             gpMachine->COMGETTER(VRAMSize)((ULONG*)&vramSize);
     1965            pGraphicsAdapter->COMGETTER(VRAMSize)((ULONG*)&vramSize);
    19581966            RTPrintf("Error: could not set VRAM size, using current setting of %d MBytes\n", vramSize);
    19591967        }
     
    19761984        goto leave;
    19771985
    1978     gpMachine->COMGETTER(MonitorCount)(&gcMonitors);
     1986    pGraphicsAdapter->COMGETTER(MonitorCount)(&gcMonitors);
    19791987    if (gcMonitors > 64)
    19801988        gcMonitors = 64;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette