- Timestamp:
- Jun 14, 2000, 4:25:57 PM (25 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r3679 r3708 1 /* $Id: dc.cpp,v 1.6 0 2000-06-08 18:10:09sandervl Exp $ */1 /* $Id: dc.cpp,v 1.61 2000-06-14 14:25:56 sandervl Exp $ */ 2 2 3 3 /* … … 625 625 } 626 626 else { 627 #if 0628 HRGN hrgnTmp = GpiCreateRegion(pHps->hps, 1, &rectl);629 630 WinQueryUpdateRegion(hwndClient, hrgnTmp);631 632 RGNRECT rgnrect = {0, 12, 0, RECTDIR_LFRT_TOPBOT};633 RECTL rectls[12], rcltemp;634 GpiQueryRegionRects(pHps->hps, hrgnTmp, &rcltemp, &rgnrect, &rectls[0]);635 GpiDestroyRegion(pHps->hps, hrgnTmp);636 #endif637 627 WinValidateRect(hwndClient, &rectl, FALSE); 638 628 … … 1110 1100 wnd->setEraseBkgnd(TRUE); 1111 1101 } 1102 else 1103 if (redraw & RDW_NOERASE_W) 1104 wnd->setEraseBkgnd(FALSE); 1112 1105 1113 1106 if (!pRect && !hrgn) … … 1203 1196 result = RedrawWindow (hwnd, pRect, NULLHANDLE, 1204 1197 RDW_ALLCHILDREN_W | RDW_INVALIDATE_W | 1205 (erase ? RDW_ERASE_W : 0) |1198 (erase ? RDW_ERASE_W : RDW_NOERASE_W) | 1206 1199 (hwnd == NULLHANDLE ? RDW_UPDATENOW_W : 0)); 1207 1200 return (result); … … 1216 1209 result = RedrawWindow (hwnd, NULL, hrgn, 1217 1210 RDW_ALLCHILDREN_W | RDW_INVALIDATE_W | 1218 (erase ? RDW_ERASE_W : 0) |1211 (erase ? RDW_ERASE_W : RDW_NOERASE_W) | 1219 1212 (hwnd == NULLHANDLE ? RDW_UPDATENOW_W : 0)); 1220 1213 return (result); -
trunk/src/user32/pmwindow.cpp
r3705 r3708 1 /* $Id: pmwindow.cpp,v 1.9 4 2000-06-14 13:15:24sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.95 2000-06-14 14:25:57 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 689 689 { 690 690 RECTL rectl; 691 692 WinQueryUpdateRect(hwnd, &rectl); 691 BOOL rc; 692 693 rc = WinQueryUpdateRect(hwnd, &rectl); 693 694 dprintf(("OS2: WM_PAINT (%d,%d) (%d,%d)", rectl.xLeft, rectl.yBottom, rectl.xRight, rectl.yTop)); 694 if(win32wnd->IsWindowCreated()) 695 if(rc && win32wnd->IsWindowCreated() && (rectl.xLeft != rectl.xRight && 696 rectl.yBottom != rectl.yTop)) 695 697 { 696 698 PRECT pClient = win32wnd->getClientRectPtr(); … … 705 707 win32wnd->DispatchMsgA(pWinMsg); 706 708 } 709 else goto RunDefWndProc; 710 707 711 //SvL: Not calling the default window procedure causes all sorts of 708 712 // strange problems (redraw & hanging app) … … 714 718 // } 715 719 // dprintf(("Update rectangle (%d,%d)(%d,%d) not empty, msg %x", rectl.xLeft, rectl.yTop, rectl.xRight, rectl.yBottom, pWinMsg->message)); 716 goto RunDefWndProc;717 //break;720 // goto RunDefWndProc; 721 break; 718 722 } 719 723
Note:
See TracChangeset
for help on using the changeset viewer.