VirtualBox

Changeset 49983 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Dec 19, 2013 12:23:17 PM (11 years ago)
Author:
vboxsync
Message:

Devices/Graphics: VMware SVGA II compatible graphics emulation (2D only), including the associated small API and VBoxManage changes, contributed by trivirt AG.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r49785 r49983  
    14341434                break;
    14351435            case GraphicsControllerType_VBoxVGA:
    1436                 rc = configGraphicsController(pDevices, "vga", pBusMgr, pMachine, biosSettings,
     1436#ifdef VBOX_WITH_VMSVGA
     1437            case GraphicsControllerType_VMSVGA:
     1438#endif
     1439                rc = configGraphicsController(pDevices, graphicsController, pBusMgr, pMachine, biosSettings,
    14371440                                              RT_BOOL(fHMEnabled));
    14381441                if (FAILED(rc))
     
    31863189
    31873190int Console::configGraphicsController(PCFGMNODE pDevices,
    3188                                       const char *pcszDevice,
     3191                                      const GraphicsControllerType_T graphicsController,
    31893192                                      BusAssignmentManager *pBusMgr,
    31903193                                      const ComPtr<IMachine> &pMachine,
     
    31983201        HRESULT hrc;
    31993202        Bstr    bstr;
     3203        const char *pcszDevice = "vga";
    32003204
    32013205#define H()         AssertMsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_GENERAL_FAILURE)
     
    32163220#else
    32173221        NOREF(fHMEnabled);
     3222#endif
     3223
     3224#ifdef VBOX_WITH_VMSVGA
     3225        if (graphicsController == GraphicsControllerType_VMSVGA)
     3226        {
     3227            InsertConfigInteger(pCfg, "VMSVGAEnabled", true);
     3228#ifdef VBOX_WITH_VMSVGA3D
     3229            IFramebuffer *pFramebuffer = getDisplay()->getFramebuffer();
     3230            if (pFramebuffer)
     3231            {
     3232                LONG64 winId = 0;
     3233                /* @todo deal with multimonitor setup */
     3234                Assert(cMonitorCount == 1);
     3235                hrc = pFramebuffer->COMGETTER(WinId)(&winId);
     3236                InsertConfigInteger(pCfg, "HostWindowId", winId);
     3237            }
     3238            BOOL f3DEnabled;
     3239            pMachine->COMGETTER(Accelerate3DEnabled)(&f3DEnabled);
     3240            InsertConfigInteger(pCfg, "VMSVGA3dEnabled", f3DEnabled);
     3241#endif
     3242        }
    32183243#endif
    32193244
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