Changeset 8605 for trunk/src/ddraw/oslibgpi.cpp
- Timestamp:
- Jun 8, 2002, 4:20:07 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ddraw/oslibgpi.cpp
r8602 r8605 1 /* $Id: oslibgpi.cpp,v 1. 4 2002-06-08 11:45:20sandervl Exp $ */1 /* $Id: oslibgpi.cpp,v 1.5 2002-06-08 14:20:07 sandervl Exp $ */ 2 2 3 3 /* … … 49 49 } 50 50 hrgnVis = GreCreateRectRegion(hps, &rcl, 1); 51 52 //If there's an update region, use it. else get visible region 53 lComplexity = WinQueryUpdateRegion(hwndClientOS2, hrgnVis); 54 if(lComplexity == RGN_ERROR || lComplexity == RGN_NULL) 55 { 56 dprintf(("No update region; take visible region")); 57 GreCopyClipRegion(hps, hrgnVis, 0, COPYCRGN_VISRGN); 58 } 51 GreCopyClipRegion(hps, hrgnVis, 0, COPYCRGN_VISRGN); 59 52 60 53 RGNRECT rgnRect; … … 78 71 } 79 72 for(i=0;i<rgnRect.crcReturned;i++) { 80 dprintf(("Region rect %d (%d,%d)(%d,%d)", i, pRectl[i].xLeft, pRectl[i].yBottom, pRectl[i].xRight, pRectl[i].yTop));81 //rectangle is in window coordinate; convert to screen82 WinMapWindowPoints(hwndClientOS2, HWND_DESKTOP, (PPOINTL)&pRectl[i], 2);83 73 dprintf(("Region rect %d (%d,%d)(%d,%d)", i, pRectl[i].xLeft, pRectl[i].yBottom, pRectl[i].xRight, pRectl[i].yTop)); 84 74 temp = pRectl[i].yTop;
Note:
See TracChangeset
for help on using the changeset viewer.