Changeset 5606 for trunk/src/user32/dc.cpp
- Timestamp:
- Apr 27, 2001, 7:36:39 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r5390 r5606 1 /* $Id: dc.cpp,v 1.9 6 2001-03-27 20:47:22sandervl Exp $ */1 /* $Id: dc.cpp,v 1.97 2001-04-27 17:36:36 sandervl Exp $ */ 2 2 3 3 /* … … 425 425 RECTL rectWindowOS2; 426 426 427 if( pClient->left == 0 && pClient->top == 0 &&427 if(!window->isOwnDCDirty() && (pClient->left == 0 && pClient->top == 0 && 428 428 window->getClientHeight() == window->getWindowHeight() && 429 window->getClientWidth() == window->getWindowWidth()) 429 window->getClientWidth() == window->getWindowWidth())) 430 430 { 431 431 //client rectangle = frame rectangle -> no change necessary … … 437 437 438 438 mapWin32ToOS2Rect(window->getWindowHeight(), window->getClientRectPtr(), (PRECTLOS2)&rcl); 439 440 GetWindowRect(window->getWindowHandle(), &rectWindow); 441 mapWin32ToOS2Rect(GetScreenHeight(), &rectWindow, (PRECTLOS2)&rectWindowOS2); 442 dprintf2(("frame (%d,%d)(%d,%d) hps height %d", rectWindowOS2.xLeft, rectWindowOS2.yBottom, rectWindowOS2.xRight, rectWindowOS2.yTop, pHps->height)); 439 443 440 444 //convert to screen coordinates … … 510 514 SETUPDC_ORIGIN | SETUPDC_VISRGN | SETUPDC_RECALCCLIP); 511 515 512 pHps->isClientArea = TRUE;513 514 516 // Destroy the region now we have finished with it. 515 517 GreDestroyRegion(pHps->hps, hrgnRect); 518 519 pHps->isClientArea = TRUE; 520 521 if(pClient->left == 0 && pClient->top == 0 && 522 window->getClientHeight() == window->getWindowHeight() && 523 window->getClientWidth() == window->getWindowWidth()) 524 { 525 //client = frame, so no changes are necessary when switching between the two 526 pHps->isClient = FALSE; 527 pHps->isClientArea = FALSE; 528 } 529 if(window->isOwnDCDirty()) { 530 window->validateOwnDC(); 531 setPageXForm(window, pHps); 532 } 516 533 517 534 //testestest … … 621 638 if(wnd) { 622 639 selectClientArea(wnd, pHps); 640 } 641 } 642 //****************************************************************************** 643 //****************************************************************************** 644 VOID WIN32API checkOrigin(pDCData pHps) 645 { 646 Win32BaseWindow *wnd; 647 648 wnd = Win32BaseWindow::GetWindowFromOS2Handle(pHps->hwnd); 649 if(wnd) { 650 dprintfOrigin(pHps->hps); 651 if(pHps->isClient) 652 selectClientArea(wnd, pHps); 623 653 } 624 654 } … … 1305 1335 pr->yTop = height - pr->yBottom; 1306 1336 pr->yBottom = height - temp; 1307 dprintf2((" Invalidregion (%d,%d) (%d,%d)", pr->xLeft, pr->yBottom, pr->xRight, pr->yTop));1337 dprintf2(("RedrawWindow: region (%d,%d) (%d,%d)", pr->xLeft, pr->yBottom, pr->xRight, pr->yTop)); 1308 1338 } 1309 1339
Note:
See TracChangeset
for help on using the changeset viewer.