Changeset 4551 for trunk/src/user32/dc.cpp
- Timestamp:
- Nov 4, 2000, 5:28:26 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r4463 r4551 1 /* $Id: dc.cpp,v 1.7 4 2000-10-09 17:26:47sandervl Exp $ */1 /* $Id: dc.cpp,v 1.75 2000-11-04 16:28:25 sandervl Exp $ */ 2 2 3 3 /* … … 225 225 mlf.lM31 = pHps->viewportOrg.x - (LONG)(pHps->windowOrg.x * xScale); 226 226 mlf.lM32 = pHps->viewportOrg.y - (LONG)(pHps->windowOrg.y * yScale); 227 mlf.lM33 = 1; 227 228 228 229 pHps->isLeftLeft = mlf.fxM11 >= 0; … … 249 250 rc = GpiSetDefaultViewMatrix(pHps->hps, 8, &mlf, TRANSFORM_REPLACE); 250 251 252 #ifdef INVERT 251 253 if (bEnableYInversion) 252 254 GpiEnableYInversion(pHps->hps, pHps->height + pHps->HPStoHDCInversionHeight); 253 255 else 254 256 GpiEnableYInversion(pHps->hps, 0); 257 #else 258 pHps->yInvert = 0; 259 if(bEnableYInversion) 260 { 261 pHps->yInvert4Enable = pHps->height + pHps->HPStoHDCInversionHeight; 262 if(pHps->isPrinter) 263 { 264 pHps->yInvert = pHps->yInvert4Enable 265 * (pHps->windowExt.cy / (double)pHps->viewportYExt); 266 } else { 267 pHps->yInvert = pHps->yInvert4Enable; 268 } 269 } 270 #endif 255 271 256 272 TestWideLine(pHps); … … 469 485 //****************************************************************************** 470 486 //****************************************************************************** 487 BOOL WIN32API WGSS_changePageXForm(pDCData pHps, PPOINTL pValue, int x, int y, PPOINTL pPrev) 488 { 489 Win32BaseWindow *wnd; 490 491 wnd = Win32BaseWindow::GetWindowFromOS2Handle(pHps->hwnd); 492 return changePageXForm(wnd, pHps, pValue, x, y, pPrev); 493 } 494 //****************************************************************************** 495 //****************************************************************************** 496 BOOL WIN32API WGSS_setPageXForm(pDCData pHps) 497 { 498 Win32BaseWindow *wnd; 499 500 wnd = Win32BaseWindow::GetWindowFromOS2Handle(pHps->hwnd); 501 return setPageXForm(wnd, pHps); 502 } 503 //****************************************************************************** 504 //****************************************************************************** 505 VOID WIN32API WGSS_removeClientArea(pDCData pHps) 506 { 507 Win32BaseWindow *wnd; 508 509 wnd = Win32BaseWindow::GetWindowFromOS2Handle(pHps->hwnd); 510 removeClientArea(wnd, pHps); 511 } 512 //****************************************************************************** 513 //****************************************************************************** 514 LONG WIN32API WGSS_clientHeight(HWND hwnd, pDCData pHps) 515 { 516 Win32BaseWindow *wnd; 517 518 wnd = Win32BaseWindow::GetWindowFromOS2Handle(pHps->hwnd); 519 return clientHeight(wnd, hwnd, pHps); 520 } 521 //****************************************************************************** 522 //****************************************************************************** 471 523 BOOL isYup (pDCData pHps) 472 524 { … … 652 704 POINTL point = {-rectlClient.xLeft, -rectlClient.yBottom}; 653 705 GpiOffsetRegion(pHps->hps, hrgnClip, &point); 654 706 #ifdef DEBUG 707 dprintfRegion1(pHps->hps, hWnd, hrgnClip); 708 #endif 655 709 //set clip region 656 GpiSetClipRegion(pHps->hps, hrgnClip, &hrgnOldClip); 710 lComplexity = GpiSetClipRegion(pHps->hps, hrgnClip, &hrgnOldClip); 711 712 GpiQueryClipBox(pHps->hps, &rectl); 713 dprintf(("ClipBox (%d): (%d,%d)(%d,%d)", lComplexity, rectl.xLeft, rectl.yBottom, rectl.xRight, rectl.yTop)); 657 714 658 715 //save old clip region (restored for CS_OWNDC windows in EndPaint) … … 672 729 WinShowTrackRect(wnd->getOS2WindowHandle(), FALSE); 673 730 674 #ifdef DEBUG675 POINTL point;676 GreGetDCOrigin(pHps->hps, &point);677 dprintf(("dc origin (%d,%d)", point.x, point.y));678 #endif679 680 731 if(wnd->needsEraseBkgnd() && lComplexity != RGN_NULL) { 681 732 wnd->setEraseBkgnd(FALSE); … … 685 736 686 737 #ifdef DEBUG 738 POINTL point; 687 739 GreGetDCOrigin(pHps->hps, &point); 688 740 dprintf(("dc origin (%d,%d)", point.x, point.y));
Note:
See TracChangeset
for help on using the changeset viewer.