Ignore:
Timestamp:
Dec 30, 2001, 11:19:05 PM (24 years ago)
Author:
sandervl
Message:

BitBlt, StretchBlt: sync dib section if selected into destination HDC

File:
1 edited

Legend:

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

    r7327 r7713  
    1 /* $Id: blit.cpp,v 1.35 2001-11-13 13:18:22 sandervl Exp $ */
     1/* $Id: blit.cpp,v 1.36 2001-12-30 22:19:04 sandervl Exp $ */
    22
    33/*
     
    5151    }
    5252  }
    53   return O32_StretchBlt(hdcDest, nXOriginDest, nYOriginDest, nWidthDest, nHeightDest, hdcSrc, nXOriginSrc, nYOriginSrc, nWidthSrc, nHeightSrc, dwRop);
     53  rc = O32_StretchBlt(hdcDest, nXOriginDest, nYOriginDest, nWidthDest, nHeightDest, hdcSrc, nXOriginSrc, nYOriginSrc, nWidthSrc, nHeightSrc, dwRop);
     54  if(DIBSection::getSection() != NULL) {
     55      DIBSection *destdib = DIBSection::findHDC(hdcDest);
     56      if(destdib) {
     57          destdib->sync(hdcDest, nYOriginDest, nHeightDest);
     58      }
     59  }
     60  return rc;
    5461}
    5562//******************************************************************************
     
    8794  dprintf(("GDI32: BitBlt to hdc %X from hdc %x (%d,%d) to (%d,%d), (%d,%d) rop %X\n",
    8895           hdcDest, hdcSrc, nXSrc, nYSrc, nXDest, nYDest, nWidth, nHeight, dwRop));
    89   return O32_BitBlt(hdcDest, nXDest, nYDest, nWidth, nHeight, hdcSrc, nXSrc, nYSrc, dwRop);
     96
     97  rc = O32_BitBlt(hdcDest, nXDest, nYDest, nWidth, nHeight, hdcSrc, nXSrc, nYSrc, dwRop);
     98
     99  if(DIBSection::getSection() != NULL) {
     100      DIBSection *destdib = DIBSection::findHDC(hdcDest);
     101      if(destdib) {
     102          destdib->sync(hdcDest, nYDest, nHeight);
     103      }
     104  }
     105  return rc;
    90106}
    91107//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.