Changeset 3356 for trunk/src


Ignore:
Timestamp:
Apr 9, 2000, 1:10:34 PM (25 years ago)
Author:
sandervl
Message:

y inversion fix for dib blits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/dibsect.cpp

    r3302 r3356  
    1 /* $Id: dibsect.cpp,v 1.25 2000-04-02 12:24:40 sandervl Exp $ */
     1/* $Id: dibsect.cpp,v 1.26 2000-04-09 11:10:34 sandervl Exp $ */
    22
    33/*
     
    385385 int    oldyinversion = 0;
    386386
     387#if 0
    387388  HWND hwndDest = WindowFromDC(hdcDest);
    388389  hwndDest = Win32ToOS2Handle(hwndDest);
     
    396397    return(FALSE);
    397398  }
     399#endif
    398400
    399401  dprintf(("DIBSection::BitBlt %x %X (hps %x) %x to(%d,%d)(%d,%d) from (%d,%d)(%d,%d) rop %x flip %x",
    400           handle, hdcDest, hps, hwndDest, nXdest, nYdest, nDestWidth, nDestHeight,
     402//          handle, hdcDest, hps, hwndDest, nXdest, nYdest, nDestWidth, nDestHeight,
     403          handle, hdcDest, hps, 0, nXdest, nYdest, nDestWidth, nDestHeight,
    401404          nXsrc, nYsrc, nSrcWidth, nSrcHeight, Rop, fFlip));
    402405
     
    425428  if(fFlip & FLIP_VERT)
    426429  {
    427         GpiEnableYInversion(hps, nDestHeight-1);
     430        GpiEnableYInversion(hps, pOS2bmp->cy-1);
    428431  }
    429432  else  GpiEnableYInversion(hps, 0);
     
    469472        //restore old y inversion height
    470473        GpiEnableYInversion(hps, oldyinversion);
    471         if(hwndDest != 0)
    472         {
    473                 WinReleasePS(hps);
    474         }
     474//      if(hwndDest != 0)
     475//      {
     476//              WinReleasePS(hps);
     477//      }
    475478        return(TRUE);
    476479  }
    477480  GpiEnableYInversion(hps, oldyinversion);
    478   if(hwndDest != 0)
    479   {
    480         WinReleasePS(hps);
    481   }
     481//  if(hwndDest != 0)
     482//  {
     483//      WinReleasePS(hps);
     484//  }
    482485  dprintf(("DIBSection::BitBlt %X (%d,%d) (%d,%d) to (%d,%d) (%d,%d) returned %d\n", hps, point[0].x, point[0].y, point[1].x, point[1].y, point[2].x, point[2].y, point[3].x, point[3].y, rc));
    483   dprintf(("WinGetLastError returned %X\n", WinGetLastError(WinQueryAnchorBlock(hwndDest)) & 0xFFFF));
     486//  dprintf(("WinGetLastError returned %X\n", WinGetLastError(WinQueryAnchorBlock(hwndDest)) & 0xFFFF));
    484487  return(FALSE);
    485488}
Note: See TracChangeset for help on using the changeset viewer.