Ignore:
Timestamp:
Apr 2, 2000, 2:24:40 PM (25 years ago)
Author:
sandervl
Message:

dib sync bugfixes

File:
1 edited

Legend:

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

    r3298 r3302  
    1 /* $Id: blit.cpp,v 1.7 2000-04-02 10:12:53 sandervl Exp $ */
     1/* $Id: blit.cpp,v 1.8 2000-04-02 12:24:39 sandervl Exp $ */
    22
    33/*
     
    3838  dprintf(("GDI32: StretchBlt Src : %x (%d, %d) size (%d, %d)\n",
    3939           hdcSrc, nXOriginSrc, nYOriginSrc, nWidthSrc, nHeightSrc));
     40  SetLastError(0);
    4041  if(DIBSection::getSection() != NULL)
    4142  {
     
    5960 BOOL rc;
    6061
     62    SetLastError(0);
    6163    if(DIBSection::getSection() != NULL) {
    6264        DIBSection *dsect = DIBSection::findHDC(hdcSrc);
    6365        if(dsect) {
    64                 rc = dsect->BitBlt(hdcDest, arg2, arg3, arg4, arg5, arg7, arg8, arg4, arg5, arg9);
    65                 if(rc) {
    66                         BITMAPINFO bmpinfo = {0};
    67                         DIBSection *dest = DIBSection::findHDC(hdcDest);
    68                         if(dest) {
    69                                 dprintf(("Sync dest DIB section"));
    70                                 bmpinfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
    71                                 GetDIBits(hdcDest, dest->GetBitmapHandle(), 0, 0, 0, &bmpinfo, dest->GetRGBUsage());
    72                                 dprintf(("height        %d", bmpinfo.bmiHeader.biHeight));
    73                                 dprintf(("width         %d", bmpinfo.bmiHeader.biWidth));
    74                                 dprintf(("biBitCount    %d", bmpinfo.bmiHeader.biBitCount));
    75                                 GetDIBits(hdcDest, dest->GetBitmapHandle(), 0, bmpinfo.bmiHeader.biHeight, dest->GetDIBObject(), &bmpinfo, dest->GetRGBUsage());
    76                         }
    77                 }
    78                 return rc;
     66                return dsect->BitBlt(hdcDest, arg2, arg3, arg4, arg5, arg7, arg8, arg4, arg5, arg9);
    7967        }
    8068    }
Note: See TracChangeset for help on using the changeset viewer.