Changeset 90691 in vbox for trunk/src/VBox
- Timestamp:
- Aug 16, 2021 8:43:03 AM (3 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/DisplayImpl.h
r85121 r90691 164 164 int i_saveVisibleRegion(uint32_t cRect, PRTRECT pRect); 165 165 int i_handleSetVisibleRegion(uint32_t cRect, PRTRECT pRect); 166 int i_handleUpdateMonitorPositions(uint32_t cPositions, P RTPOINT pPosition);166 int i_handleUpdateMonitorPositions(uint32_t cPositions, PCRTPOINT paPositions); 167 167 int i_handleQueryVisibleRegion(uint32_t *pcRects, PRTRECT paRects); 168 168 -
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r90227 r90691 1280 1280 } 1281 1281 1282 int Display::i_handleUpdateMonitorPositions(uint32_t cPositions, P RTPOINT pPosition)1283 { 1284 AssertMsgReturn(p Position, ("Empty monitor position array\n"), E_INVALIDARG);1282 int Display::i_handleUpdateMonitorPositions(uint32_t cPositions, PCRTPOINT paPositions) 1283 { 1284 AssertMsgReturn(paPositions, ("Empty monitor position array\n"), E_INVALIDARG); 1285 1285 for (unsigned i = 0; i < cPositions; ++i) 1286 1286 LogRel2(("Display::i_handleUpdateMonitorPositions: uScreenId=%d xOrigin=%d yOrigin=%dX\n", 1287 i, p Position[i].x, pPosition[i].y));1287 i, paPositions[i].x, paPositions[i].y)); 1288 1288 1289 1289 if (mpDrv && mpDrv->pUpPort->pfnReportMonitorPositions) 1290 mpDrv->pUpPort->pfnReportMonitorPositions(mpDrv->pUpPort, cPositions, p Position);1290 mpDrv->pUpPort->pfnReportMonitorPositions(mpDrv->pUpPort, cPositions, paPositions); 1291 1291 return VINF_SUCCESS; 1292 1292 } -
trunk/src/VBox/Main/src-client/VMMDevInterface.cpp
r89952 r90691 461 461 } 462 462 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 */ 466 static 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); 469 472 470 473 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.