Ignore:
Timestamp:
Nov 4, 2000, 5:28:26 PM (25 years ago)
Author:
sandervl
Message:

LockWindowUpdate rewritten + small changes

File:
1 edited

Legend:

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

    r4463 r4551  
    1 /* $Id: dc.cpp,v 1.74 2000-10-09 17:26:47 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.75 2000-11-04 16:28:25 sandervl Exp $ */
    22
    33/*
     
    225225   mlf.lM31  = pHps->viewportOrg.x - (LONG)(pHps->windowOrg.x * xScale);
    226226   mlf.lM32  = pHps->viewportOrg.y - (LONG)(pHps->windowOrg.y * yScale);
     227   mlf.lM33  = 1;
    227228
    228229   pHps->isLeftLeft = mlf.fxM11 >= 0;
     
    249250      rc = GpiSetDefaultViewMatrix(pHps->hps, 8, &mlf, TRANSFORM_REPLACE);
    250251
     252#ifdef INVERT
    251253   if (bEnableYInversion)
    252254      GpiEnableYInversion(pHps->hps, pHps->height + pHps->HPStoHDCInversionHeight);
    253255   else
    254256      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
    255271
    256272   TestWideLine(pHps);
     
    469485//******************************************************************************
    470486//******************************************************************************
     487BOOL   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//******************************************************************************
     496BOOL   WIN32API WGSS_setPageXForm(pDCData pHps)
     497{
     498 Win32BaseWindow *wnd;
     499
     500   wnd = Win32BaseWindow::GetWindowFromOS2Handle(pHps->hwnd);
     501   return setPageXForm(wnd, pHps);
     502}
     503//******************************************************************************
     504//******************************************************************************
     505VOID   WIN32API WGSS_removeClientArea(pDCData pHps)
     506{
     507 Win32BaseWindow *wnd;
     508
     509   wnd = Win32BaseWindow::GetWindowFromOS2Handle(pHps->hwnd);
     510   removeClientArea(wnd, pHps);
     511}
     512//******************************************************************************
     513//******************************************************************************
     514LONG   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//******************************************************************************
    471523BOOL isYup (pDCData pHps)
    472524{
     
    652704        POINTL point = {-rectlClient.xLeft, -rectlClient.yBottom};
    653705        GpiOffsetRegion(pHps->hps, hrgnClip, &point);
    654 
     706#ifdef DEBUG
     707        dprintfRegion1(pHps->hps, hWnd, hrgnClip);
     708#endif
    655709        //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));
    657714
    658715        //save old clip region (restored for CS_OWNDC windows in EndPaint)
     
    672729   WinShowTrackRect(wnd->getOS2WindowHandle(), FALSE);
    673730
    674 #ifdef DEBUG
    675    POINTL point;
    676    GreGetDCOrigin(pHps->hps, &point);
    677    dprintf(("dc origin (%d,%d)", point.x, point.y));
    678 #endif
    679 
    680731   if(wnd->needsEraseBkgnd() && lComplexity != RGN_NULL) {
    681732        wnd->setEraseBkgnd(FALSE);
     
    685736
    686737#ifdef DEBUG
     738   POINTL point;
    687739   GreGetDCOrigin(pHps->hps, &point);
    688740   dprintf(("dc origin (%d,%d)", point.x, point.y));
Note: See TracChangeset for help on using the changeset viewer.