Ignore:
Timestamp:
Apr 18, 2000, 1:11:52 PM (25 years ago)
Author:
sandervl
Message:

dib section fixes

File:
1 edited

Legend:

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

    r3343 r3418  
    1 /* $Id: blit.cpp,v 1.9 2000-04-07 17:07:16 sandervl Exp $ */
     1/* $Id: blit.cpp,v 1.10 2000-04-18 11:11:52 sandervl Exp $ */
    22
    33/*
     
    4444    if(dsect)
    4545    {
    46         dprintf((" Do stretched DIB Blt\n"));
    4746        rc  = dsect->BitBlt( hdcDest,
    4847                             nXOriginDest, nYOriginDest, nWidthDest, nHeightDest,
     
    192191  }
    193192  rc = O32_PatBlt(hdc,nXLeft,nYLeft,nWidth,nHeight,dwRop);
    194   dprintf(("GDI32: PatBlt (%d,%d) (%d,%d) returned %d\n",nXLeft,nYLeft,nWidth,nHeight,rc));
     193  if(rc) {
     194        DIBSection *destdib = DIBSection::findHDC(hdc);
     195        if(destdib) {
     196                destdib->sync(hdc, nYLeft, nHeight);
     197        }
     198  }
     199
     200  dprintf(("GDI32: PatBlt hdc %x (%d,%d) (%d,%d) returned %d\n",hdc, nXLeft,nYLeft,nWidth,nHeight,rc));
    195201  return(rc);
    196202}
Note: See TracChangeset for help on using the changeset viewer.