Changeset 37175 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- May 21, 2011 8:51:24 PM (14 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r36921 r37175 1048 1048 int Display::handleSetVisibleRegion(uint32_t cRect, PRTRECT pRect) 1049 1049 { 1050 RTRECT *pVisibleRegion = (RTRECT *)RTMemTmpAlloc(cRect * sizeof (RTRECT)); 1050 RTRECT *pVisibleRegion = (RTRECT *)RTMemTmpAlloc( RT_MAX(cRect, 1) 1051 * sizeof (RTRECT)); 1051 1052 if (!pVisibleRegion) 1052 1053 { … … 1103 1104 } 1104 1105 1105 if (cRectVisibleRegion > 0) 1106 { 1107 pFBInfo->pFramebuffer->SetVisibleRegion((BYTE *)pVisibleRegion, cRectVisibleRegion); 1108 } 1106 pFBInfo->pFramebuffer->SetVisibleRegion((BYTE *)pVisibleRegion, cRectVisibleRegion); 1109 1107 } 1110 1108 } -
trunk/src/VBox/Main/src-client/VMMDevInterface.cpp
r35907 r37175 464 464 PDRVMAINVMMDEV pDrv = PDMIVMMDEVCONNECTOR_2_MAINVMMDEV(pInterface); 465 465 Console *pConsole = pDrv->pVMMDev->getParent(); 466 467 if (!cRect)468 return VERR_INVALID_PARAMETER;469 466 470 467 /* Forward to Display, which calls corresponding framebuffers. */
Note:
See TracChangeset
for help on using the changeset viewer.