Changeset 46075 in vbox
- Timestamp:
- May 14, 2013 4:52:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r46065 r46075 149 149 } 150 150 151 if (RTCritSectIsInitialized 152 { 153 RTCritSectDelete 154 memset 151 if (RTCritSectIsInitialized(&mSaveSeamlessRectLock)) 152 { 153 RTCritSectDelete(&mSaveSeamlessRectLock); 154 memset(&mSaveSeamlessRectLock, 0, sizeof (mSaveSeamlessRectLock)); 155 155 } 156 156 BaseFinalRelease(); … … 483 483 maFramebuffers[ul].fDefaultFormat = false; 484 484 485 maFramebuffers[ul].mcSavedVisibleRegion = 0; 486 maFramebuffers[ul].mpSavedVisibleRegion = NULL; 487 485 488 memset (&maFramebuffers[ul].dirtyRect, 0 , sizeof (maFramebuffers[ul].dirtyRect)); 486 489 memset (&maFramebuffers[ul].pendingResize, 0 , sizeof (maFramebuffers[ul].pendingResize)); … … 835 838 * applied after the resize of the framebuffer is completed 836 839 */ 837 if (pFBInfo->mcSavedVisibleRegion) 838 { 839 handleSetVisibleRegion(pFBInfo->mcSavedVisibleRegion, 840 pFBInfo->mpSavedVisibleRegion); 841 840 SaveSeamlessRectLock(); 841 PRTRECT pSavedSeamlessRgn = pFBInfo->mpSavedVisibleRegion; 842 uint32_t ucSavedSeamlessRgn = pFBInfo->mcSavedVisibleRegion; 843 SaveSeamlessRectUnLock(); 844 if (pSavedSeamlessRgn && ucSavedSeamlessRgn) 845 { 846 handleSetVisibleRegion(ucSavedSeamlessRgn, pSavedSeamlessRgn); 842 847 SaveSeamlessRectLock(); 843 848 if (pFBInfo->mpSavedVisibleRegion) … … 1128 1133 RTMemFree(pFBInfo->mpSavedVisibleRegion); 1129 1134 1130 pFBInfo->mpSavedVisibleRegion = (RTRECT *)RTMem TmpAlloc(RT_MAX(cRect, 1)1131 1135 pFBInfo->mpSavedVisibleRegion = (RTRECT *)RTMemAlloc( RT_MAX(cRect, 1) 1136 * sizeof (RTRECT)); 1132 1137 if (pFBInfo->mpSavedVisibleRegion) 1133 1138 { 1134 1139 memcpy(pFBInfo->mpSavedVisibleRegion, pRect, cRect * sizeof(RTRECT)); 1135 1140 pFBInfo->mcSavedVisibleRegion = cRect; 1141 } 1142 else 1143 { 1144 /* memory allocation failed */ 1145 pFBInfo->mcSavedVisibleRegion = 0; 1136 1146 } 1137 1147 SaveSeamlessRectUnLock();
Note:
See TracChangeset
for help on using the changeset viewer.