Ignore:
Timestamp:
Feb 19, 2001, 2:13:04 PM (25 years ago)
Author:
sandervl
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/dc.cpp

    r5189 r5191  
    1 /* $Id: dc.cpp,v 1.89 2001-02-19 10:15:49 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.90 2001-02-19 13:13:00 sandervl Exp $ */
    22
    33/*
     
    219219   double yScale =  pHps->viewportYExt / (double)pHps->windowExt.cy;
    220220
     221#if 0
     222   mlf.fxM11 = FLOAT_TO_FIXED(1.0);
     223   mlf.fxM12 = 0;
     224   mlf.lM13  = 0;
     225   mlf.fxM21 = 0;
     226   mlf.fxM22 = FLOAT_TO_FIXED(1.0);
     227   mlf.lM23  = 0;
     228   mlf.lM31  = pHps->viewportOrg.x - (LONG)(pHps->windowOrg.x * xScale);
     229   mlf.lM32  = pHps->viewportOrg.y - (LONG)(pHps->windowOrg.y * yScale);
     230   mlf.lM33  = 1;
     231
     232//testestest
     233   if(wnd && wnd->getWindowWidth() && wnd->getWindowHeight()) {
     234       RECTL recttmp, rectviewold;
     235
     236       rc = GpiQueryPageViewport(pHps->hps, &rectviewold);
     237       if(rc == 0) {
     238           dprintf(("WARNING: GpiQueryPageViewport returned FALSE!!"));
     239       }
     240       recttmp.xLeft   = 0;
     241//       recttmp.xRight  = ((double)wnd->getWindowWidth() / xScale);
     242       recttmp.xRight  = ((double)GetScreenWidth() / xScale);
     243       recttmp.yBottom = 0;
     244//       recttmp.yTop    = ((double)wnd->getWindowHeight() / yScale);
     245       recttmp.yTop    = ((double)GetScreenHeight() / yScale);
     246
     247       if(recttmp.yTop != rectviewold.yTop ||
     248          recttmp.xRight != rectviewold.xRight)
     249       {
     250           dprintf(("GpiSetPageViewport %x (%d,%d) %f %f", pHps->hps, recttmp.xRight, recttmp.yTop, xScale, yScale));
     251           rc = GpiSetPageViewport(pHps->hps, &recttmp);
     252           if(rc == 0) {
     253              dprintf(("WARNING: GpiSetPageViewport returned FALSE!!"));
     254           }
     255       }
     256   }
     257//testestest
     258
     259#else
    221260   mlf.fxM11 = FLOAT_TO_FIXED(xScale);
    222261   mlf.fxM12 = 0;
     
    228267   mlf.lM32  = pHps->viewportOrg.y - (LONG)(pHps->windowOrg.y * yScale);
    229268   mlf.lM33  = 1;
     269#endif
    230270
    231271   pHps->isLeftLeft = mlf.fxM11 >= 0;
     
    251291//      (pHps->pMetaFileObject && pHps->pMetaFileObject->isEnhanced()))
    252292      rc = GpiSetDefaultViewMatrix(pHps->hps, 8, &mlf, TRANSFORM_REPLACE);
    253 
     293   if(rc == 0) {
     294      dprintf(("WARNING: GpiSetDefaultViewMatrix returned FALSE!!"));
     295   }
    254296#ifdef INVERT
    255297   if (bEnableYInversion)
     
    400442        dprintf2(("WARNING: selectClientArea %x; already selected! origin (%d,%d) original origin (%d,%d)", window->getWindowHandle(), rcltemp.xLeft, rcltemp.yBottom, pHps->ptlOrigin.x, pHps->ptlOrigin.y));
    401443        GetWindowRect(window->getWindowHandle(), &rectWindow);
    402         mapWin32ToOS2Rect(OSLibGetScreenHeight(), &rectWindow, (PRECTLOS2)&rectWindowOS2);
     444        mapWin32ToOS2Rect(GetScreenHeight(), &rectWindow, (PRECTLOS2)&rectWindowOS2);
    403445        if(rectWindowOS2.xLeft + rcl.xLeft != rcltemp.xLeft ||
    404446           rectWindowOS2.yBottom + rcl.yBottom != rcltemp.yBottom)
     
    438480        rectWindow.bottom  = rectWindow.top + pClient->bottom;
    439481        rectWindow.top    += pClient->top;
    440         mapWin32ToOS2Rect(OSLibGetScreenHeight(), &rectWindow, (PRECTLOS2)&rectWindowOS2);
     482        mapWin32ToOS2Rect(GetScreenHeight(), &rectWindow, (PRECTLOS2)&rectWindowOS2);
    441483
    442484        hrgnParentClip = GreCreateRectRegion(pHps->hps, &rectWindowOS2, 1);
     
    476518   GpiQueryPageViewport(pHps->hps, &rectWindowOS2);
    477519   dprintf2(("page viewport (%d,%d)(%d,%d)", rectWindowOS2.xLeft, rectWindowOS2.yBottom, rectWindowOS2.xRight, rectWindowOS2.yTop));
     520
     521   GpiQueryBoundaryData(pHps->hps, &rectWindowOS2);
     522   dprintf2(("boundary data (%d,%d)(%d,%d)", rectWindowOS2.xLeft, rectWindowOS2.yBottom, rectWindowOS2.xRight, rectWindowOS2.yTop));
    478523
    479524   GpiQueryGraphicsField(pHps->hps, &rectWindowOS2);
Note: See TracChangeset for help on using the changeset viewer.