Changeset 46086 in vbox
- Timestamp:
- May 15, 2013 7:29:54 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r46075 r46086 834 834 } 835 835 LogRelFlow(("[%d]: default format %d\n", uScreenId, pFBInfo->fDefaultFormat)); 836 836 837 837 /* Handle the case if there are some saved visible region that needs to be 838 838 * applied after the resize of the framebuffer is completed 839 839 */ 840 840 SaveSeamlessRectLock(); 841 PRTRECT pSavedSeamlessRgn = pFBInfo->mpSavedVisibleRegion; 842 uint32_t ucSavedSeamlessRgn = pFBInfo->mcSavedVisibleRegion; 841 PRTRECT pSavedVisibleRegion = pFBInfo->mpSavedVisibleRegion; 842 uint32_t cSavedVisibleRegion = pFBInfo->mcSavedVisibleRegion; 843 pFBInfo->mpSavedVisibleRegion = NULL; 844 pFBInfo->mcSavedVisibleRegion = 0; 843 845 SaveSeamlessRectUnLock(); 844 if (pSavedSeamlessRgn && ucSavedSeamlessRgn) 845 { 846 handleSetVisibleRegion(ucSavedSeamlessRgn, pSavedSeamlessRgn); 847 SaveSeamlessRectLock(); 848 if (pFBInfo->mpSavedVisibleRegion) 849 RTMemFree(pFBInfo->mpSavedVisibleRegion); 850 pFBInfo->mpSavedVisibleRegion = NULL; 851 pFBInfo->mcSavedVisibleRegion = 0; 852 SaveSeamlessRectUnLock(); 853 } 854 846 847 if (pSavedVisibleRegion) 848 { 849 handleSetVisibleRegion(cSavedVisibleRegion, pSavedVisibleRegion); 850 RTMemFree(pSavedVisibleRegion); 851 } 855 852 856 853 #ifdef DEBUG_sunlover … … 1130 1127 */ 1131 1128 SaveSeamlessRectLock(); 1132 if(pFBInfo->mpSavedVisibleRegion) 1133 RTMemFree(pFBInfo->mpSavedVisibleRegion); 1134 1129 RTMemFree(pFBInfo->mpSavedVisibleRegion); 1130 1135 1131 pFBInfo->mpSavedVisibleRegion = (RTRECT *)RTMemAlloc( RT_MAX(cRect, 1) 1136 1132 * sizeof (RTRECT)); … … 1142 1138 else 1143 1139 { 1144 /* memory allocation failed */1145 1140 pFBInfo->mcSavedVisibleRegion = 0; 1146 1141 }
Note:
See TracChangeset
for help on using the changeset viewer.