- Timestamp:
- Jun 8, 2002, 4:20:07 PM (23 years ago)
- Location:
- trunk/src/ddraw
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ddraw/OS2SURFACE.CPP
r8602 r8605 1 /* $Id: OS2SURFACE.CPP,v 1.4 1 2002-06-08 11:45:19sandervl Exp $ */1 /* $Id: OS2SURFACE.CPP,v 1.42 2002-06-08 14:20:06 sandervl Exp $ */ 2 2 3 3 /* … … 2479 2479 for(i=0;i<lpRgnData->rdh.nCount;i++) 2480 2480 { 2481 //win32 -> os2 coordinates (region data in screen coordinates) 2481 2482 temp = pRectl[i].yTop; 2482 pRectl[i].yTop = dest->DDSurfaceDesc.dwHeight- pRectl[i].yBottom;2483 pRectl[i].yBottom = dest->DDSurfaceDesc.dwHeight- temp;2483 pRectl[i].yTop = src->lpDraw->GetScreenHeight() - pRectl[i].yBottom; 2484 pRectl[i].yBottom = src->lpDraw->GetScreenHeight() - temp; 2484 2485 dprintf(("(%d,%d)(%d,%d)", pRectl[i].xLeft, pRectl[i].yBottom, pRectl[i].xRight, pRectl[i].yTop)); 2486 2485 2487 //clip rectangle must be relative to lScreenPos 2486 2488 pRectl[i].xLeft -= sBlt.lScreenPosX; -
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.