Changeset 2421 for trunk/src/user32/new/dc.cpp
- Timestamp:
- Jan 12, 2000, 6:37:29 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/dc.cpp
r2353 r2421 1 /* $Id: dc.cpp,v 1.1 0 2000-01-07 17:38:46cbratschi Exp $ */1 /* $Id: dc.cpp,v 1.11 2000-01-12 17:37:28 cbratschi Exp $ */ 2 2 3 3 /* … … 553 553 if (updateRegionExists) 554 554 { 555 //CB: for PM empty rect is valid 556 if ((rectl.xLeft == rectl.xRight) || (rectl.yTop == rectl.yBottom)) return FALSE; 555 557 //SvL: Hack for memory.exe (doesn't get repainted properly otherwise) 556 558 // if (wnd->isOwnDC() && wnd->getOwnDC()) … … 604 606 605 607 if (updateRegionExists) 608 { 609 //CB: for PM empty rect is valid 610 if ((rectl.xLeft == rectl.xRight) || (rectl.yTop == rectl.yBottom)) return FALSE; 606 611 mapOS2ToWin32Rect(hwnd,(PRECTLOS2)&rectl,pRect); 607 else608 pRect->left = pRect->top = pRect->right = pRect->bottom = 0;612 } else 613 pRect->left = pRect->top = pRect->right = pRect->bottom = 0; 609 614 610 615 return updateRegionExists; … … 722 727 ULONG BytesNeeded; 723 728 PRGNDATA_W RgnData; 724 PRECT Lpr;729 PRECT pr; 725 730 int i; 726 LONG height = OSLibQueryScreenHeight();731 RECTL rectl; 727 732 728 733 if (!hrgn) … … 736 741 737 742 i = RgnData->rdh.nCount; 738 pr = (PRECT L)(RgnData->Buffer);743 pr = (PRECT)(RgnData->Buffer); 739 744 740 745 success = TRUE; 741 746 if (flags & DCX_EXCLUDERGN_W) 747 { 748 #if 0 //CB: todo 742 749 for (; (i > 0) && success; i--, pr++) { 743 750 LONG y = pr->yBottom; … … 747 754 success &= GpiExcludeClipRectangle (pHps->hps, pr); 748 755 } 749 else 750 for (; (i > 0) && success; i--, pr++) { 751 LONG y = pr->yBottom; 752 753 pr->yBottom = height - pr->yTop; 754 pr->yTop = height - y; 755 success &= GpiIntersectClipRectangle (pHps->hps, pr); 756 } 756 #endif 757 } else //DCX_INTERSECTRGN_W 758 { 759 O32_SelectClipRgn(pHps->hps,hrgn); //CB: works so far 760 } 757 761 if (!success) 758 762 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.