VirtualBox

Changeset 84722 in vbox


Ignore:
Timestamp:
Jun 8, 2020 10:57:01 AM (4 years ago)
Author:
vboxsync
Message:

bugref:9637. setting vmsvga relevant functions in DevVGA only when vmsvga is used.

Location:
trunk/src/VBox/Devices/Graphics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp

    r84013 r84722  
    863863    PVMSVGAR3STATE      pSVGAState = pThisCC->svga.pSvgaR3State;
    864864
     865    AssertReturnVoid(pSVGAState);
     866
    865867    /* We assume cPositions is the # of outputs Xserver reports and paPositions is (-1, -1) for disabled monitors. */
    866868    cPositions = RT_MIN(cPositions, RT_ELEMENTS(pSVGAState->aScreens));
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r83648 r84722  
    65866586    pThisCC->IPort.pfnCopyRect          = vgaR3PortCopyRect;
    65876587    pThisCC->IPort.pfnSetRenderVRAM     = vgaR3PortSetRenderVRAM;
     6588    pThisCC->IPort.pfnSetViewport       = NULL;
     6589    pThisCC->IPort.pfnReportMonitorPositions = NULL;
    65886590# ifdef VBOX_WITH_VMSVGA
    6589     pThisCC->IPort.pfnSetViewport       = vmsvgaR3PortSetViewport;
    6590 # else
    6591     pThisCC->IPort.pfnSetViewport       = NULL;
     6591    if (pThis->fVMSVGAEnabled)
     6592    {
     6593        pThisCC->IPort.pfnSetViewport = vmsvgaR3PortSetViewport;
     6594        pThisCC->IPort.pfnReportMonitorPositions = vmsvgaR3PortReportMonitorPositions;
     6595    }
    65926596# endif
    65936597    pThisCC->IPort.pfnSendModeHint      = vbvaR3PortSendModeHint;
    65946598    pThisCC->IPort.pfnReportHostCursorCapabilities = vgaR3PortReportHostCursorCapabilities;
    65956599    pThisCC->IPort.pfnReportHostCursorPosition = vgaR3PortReportHostCursorPosition;
    6596 # ifdef VBOX_WITH_VMSVGA
    6597     pThisCC->IPort.pfnReportMonitorPositions = vmsvgaR3PortReportMonitorPositions;
    6598 # else
    6599     pThisCC->IPort.pfnReportMonitorPositions = NULL;
    6600 # endif
    6601 
    66026600
    66036601# if defined(VBOX_WITH_HGSMI) && defined(VBOX_WITH_VIDEOHWACCEL)
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