Changeset 68248 in vbox for trunk/src/VBox/Additions/common/crOpenGL
- Timestamp:
- Aug 2, 2017 2:00:41 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/load.c
r65381 r68248 31 31 #include <d3d9types.h> 32 32 #include <D3dumddi.h> 33 #include "../../WINNT/Graphics/Video/common/wddm/VBoxMPIf.h"34 33 #endif 35 34 … … 784 783 } 785 784 else crWarning("GetRegionData failed, VisibleRegions update failed"); 786 }787 788 static HRGN stubMakeRegionFromRects(PVBOXVIDEOCM_CMD_RECTS pRegions, uint32_t start)789 {790 HRGN hRgn, hTmpRgn;791 uint32_t i;792 793 if (pRegions->RectsInfo.cRects<=start)794 {795 return INVALID_HANDLE_VALUE;796 }797 798 hRgn = CreateRectRgn(0, 0, 0, 0);799 for (i=start; i<pRegions->RectsInfo.cRects; ++i)800 {801 hTmpRgn = CreateRectRgnIndirect(&pRegions->RectsInfo.aRects[i]);802 CombineRgn(hRgn, hRgn, hTmpRgn, RGN_OR);803 DeleteObject(hTmpRgn);804 }805 return hRgn;806 785 } 807 786
Note:
See TracChangeset
for help on using the changeset viewer.