Changeset 5855 for trunk/src


Ignore:
Timestamp:
Jun 1, 2001, 9:49:30 AM (24 years ago)
Author:
sandervl
Message:

GetDIBits fix for querying the bitmap information

File:
1 edited

Legend:

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

    r5825 r5855  
    1 /* $Id: dibitmap.cpp,v 1.17 2001-05-29 09:45:21 sandervl Exp $ */
     1/* $Id: dibitmap.cpp,v 1.18 2001-06-01 07:49:30 sandervl Exp $ */
    22
    33/*
     
    284284 int rc;
    285285
     286    dprintf(("GDI32: GetDIBits %x %x %d %d %x %x (biBitCount %d) %d", hdc, hBitmap, uStartScan, cScanLines, lpvBits, lpbi, lpbi->bmiHeader.biBitCount, uUsage));
    286287    rc = O32_GetDIBits(hdc, hBitmap, uStartScan, cScanLines, lpvBits, lpbi, uUsage);
    287288    // set proper color masks!
     
    299300       break;
    300301    }
    301 
    302     dprintf(("GDI32: GetDIBits %x %x %d %d %x %x %d returned %d", hdc, hBitmap, uStartScan, cScanLines, lpvBits, lpbi, uUsage, rc));
     302    //WGSS/Open32 returns 0 when querying the bitmap info; must return nr of scanlines
     303    //as 0 signals failure
     304    if(lpvBits == NULL) {
     305       rc = cScanLines;
     306    }
     307    dprintf(("GDI32: GetDIBits return rc %d", rc));
    303308    return rc;
    304309}
Note: See TracChangeset for help on using the changeset viewer.