Changeset 4147 for trunk/src/user32/dc.cpp
- Timestamp:
- Sep 2, 2000, 10:30:11 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r3888 r4147 1 /* $Id: dc.cpp,v 1. 69 2000-07-22 12:51:59 sandervl Exp $ */1 /* $Id: dc.cpp,v 1.70 2000-09-02 08:30:09 sandervl Exp $ */ 2 2 3 3 /* … … 546 546 //****************************************************************************** 547 547 //****************************************************************************** 548 #ifdef DEBUG 549 #define dprintfRegion(a,b,c) if(DbgEnabledLvl2[DBG_LOCALLOG] == 1) dprintfRegion1(a,b,c) 550 551 void dprintfRegion1(HPS hps, HWND hWnd, HRGN hrgnClip) 552 { 553 RGNRECT rgnRect = {0, 16, 0, RECTDIR_LFRT_TOPBOT}; 554 RECTL rectRegion[16]; 555 APIRET rc; 556 557 dprintf(("dprintfRegion %x %x", hWnd, hps)); 558 rc = GpiQueryRegionRects(hps, hrgnClip, NULL, &rgnRect, &rectRegion[0]); 559 for(int i=0;i<rgnRect.crcReturned;i++) { 560 dprintf(("(%d,%d)(%d,%d)", rectRegion[i].xLeft, rectRegion[i].yBottom, rectRegion[i].xRight, rectRegion[i].yTop)); 561 } 562 } 563 #else 564 #define dprintfRegion(a,b,c) 565 #endif 566 //****************************************************************************** 567 //****************************************************************************** 548 568 HDC WIN32API BeginPaint (HWND hWnd, PPAINTSTRUCT_W lpps) 549 569 { … … 592 612 } 593 613 594 //testest595 if(hwnd == 0x6800000f) {596 lComplexity = 1;597 }598 599 614 if(WinQueryUpdateRect(hwndClient, &rectl) == FALSE) { 600 615 memset(&rectl, 0, sizeof(rectl)); … … 615 630 616 631 //Query update region 632 #if 1 633 HRGN hrgnClip = GpiCreateRegion(pHps->hps, 1, &rectl); 634 #else 617 635 HRGN hrgnClip = GpiCreateRegion(pHps->hps, 1, &rectlClip); 618 636 WinQueryUpdateRegion(hwndClient, hrgnClip); 637 dprintfRegion(pHps->hps, hWnd, hrgnClip); 638 WinQueryVisibleRegion(hwndClient, hrgnClip); 639 dprintfRegion(pHps->hps, hWnd, hrgnClip); 640 WinQueryUpdateRegion(hwndClient, hrgnClip); 641 #endif 619 642 WinValidateRegion(hwndClient, hrgnClip, FALSE); 620 643
Note:
See TracChangeset
for help on using the changeset viewer.