VirtualBox

Changeset 90691 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 16, 2021 8:43:03 AM (3 years ago)
Author:
vboxsync
Message:

pdmifs: display reporting doxygen (brief + newline + detailed description) and parameter type+name.

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/DisplayImpl.h

    r85121 r90691  
    164164    int  i_saveVisibleRegion(uint32_t cRect, PRTRECT pRect);
    165165    int  i_handleSetVisibleRegion(uint32_t cRect, PRTRECT pRect);
    166     int  i_handleUpdateMonitorPositions(uint32_t cPositions, PRTPOINT pPosition);
     166    int  i_handleUpdateMonitorPositions(uint32_t cPositions, PCRTPOINT paPositions);
    167167    int  i_handleQueryVisibleRegion(uint32_t *pcRects, PRTRECT paRects);
    168168
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r90227 r90691  
    12801280}
    12811281
    1282 int  Display::i_handleUpdateMonitorPositions(uint32_t cPositions, PRTPOINT pPosition)
    1283 {
    1284     AssertMsgReturn(pPosition, ("Empty monitor position array\n"), E_INVALIDARG);
     1282int  Display::i_handleUpdateMonitorPositions(uint32_t cPositions, PCRTPOINT paPositions)
     1283{
     1284    AssertMsgReturn(paPositions, ("Empty monitor position array\n"), E_INVALIDARG);
    12851285    for (unsigned i = 0; i < cPositions; ++i)
    12861286        LogRel2(("Display::i_handleUpdateMonitorPositions: uScreenId=%d xOrigin=%d yOrigin=%dX\n",
    1287                  i, pPosition[i].x, pPosition[i].y));
     1287                 i, paPositions[i].x, paPositions[i].y));
    12881288
    12891289    if (mpDrv && mpDrv->pUpPort->pfnReportMonitorPositions)
    1290         mpDrv->pUpPort->pfnReportMonitorPositions(mpDrv->pUpPort, cPositions, pPosition);
     1290        mpDrv->pUpPort->pfnReportMonitorPositions(mpDrv->pUpPort, cPositions, paPositions);
    12911291    return VINF_SUCCESS;
    12921292}
  • trunk/src/VBox/Main/src-client/VMMDevInterface.cpp

    r89952 r90691  
    461461}
    462462
    463 DECLCALLBACK(int) vmmdevUpdateMonitorPositions(PPDMIVMMDEVCONNECTOR pInterface, uint32_t cPositions, PRTPOINT pPositions)
    464 {
    465     PDRVMAINVMMDEV pDrv = RT_FROM_MEMBER(pInterface, DRVMAINVMMDEV, Connector);
    466     Console *pConsole = pDrv->pVMMDev->getParent();
    467 
    468     pConsole->i_getDisplay()->i_handleUpdateMonitorPositions(cPositions, pPositions);
     463/**
     464 * @interface_method_impl{PDMIVMMDEVCONNECTOR,pfnUpdateMonitorPositions}
     465 */
     466static DECLCALLBACK(int) vmmdevUpdateMonitorPositions(PPDMIVMMDEVCONNECTOR pInterface, uint32_t cPositions, PCRTPOINT paPositions)
     467{
     468    PDRVMAINVMMDEV pDrv = RT_FROM_MEMBER(pInterface, DRVMAINVMMDEV, Connector);
     469    Console *pConsole = pDrv->pVMMDev->getParent();
     470
     471    pConsole->i_getDisplay()->i_handleUpdateMonitorPositions(cPositions, paPositions);
    469472
    470473    return VINF_SUCCESS;
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