Changeset 5866 for trunk/src


Ignore:
Timestamp:
Jun 1, 2001, 2:29:25 PM (24 years ago)
Author:
sandervl
Message:

GetDIBits fix for memory dcs

File:
1 edited

Legend:

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

    r5855 r5866  
    1 /* $Id: dibitmap.cpp,v 1.18 2001-06-01 07:49:30 sandervl Exp $ */
     1/* $Id: dibitmap.cpp,v 1.19 2001-06-01 12:29:25 sandervl Exp $ */
    22
    33/*
     
    285285
    286286    dprintf(("GDI32: GetDIBits %x %x %d %d %x %x (biBitCount %d) %d", hdc, hBitmap, uStartScan, cScanLines, lpvBits, lpbi, lpbi->bmiHeader.biBitCount, uUsage));
    287     rc = O32_GetDIBits(hdc, hBitmap, uStartScan, cScanLines, lpvBits, lpbi, uUsage);
     287
     288#if 1 //def OPEN32
     289    //SvL: WGSS screws up the DC if it's a memory DC
     290    //     TODO: Fix in WGSS
     291    HDC hdcMem = CreateCompatibleDC(0);
     292#endif
     293    rc = O32_GetDIBits(hdcMem, hBitmap, uStartScan, cScanLines, lpvBits, lpbi, uUsage);
     294#if 1 //def OPEN32
     295    DeleteDC(hdcMem);
     296#endif
     297
    288298    // set proper color masks!
    289299    switch(lpbi->bmiHeader.biBitCount) {
Note: See TracChangeset for help on using the changeset viewer.