Ignore:
Timestamp:
Feb 10, 2000, 1:36:11 AM (26 years ago)
Author:
sandervl
Message:

CreateDIBSection enhancement + CreateICA/W bugfix

File:
1 edited

Legend:

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

    r2600 r2718  
    1 /* $Id: dibitmap.cpp,v 1.2 2000-02-02 23:45:06 sandervl Exp $ */
     1/* $Id: dibitmap.cpp,v 1.3 2000-02-10 00:36:10 sandervl Exp $ */
    22
    33/*
     
    8585
    8686  dprintf(("GDI32: CreateDIBSection %x %x %x %x %d", hdc, iUsage, ppvBits, hSection, dwOffset));
    87   if(hSection)
    88   {
    89     dprintf(("GDI32: CreateDIBSection, hSection != NULL, not supported!"));
    90     return NULL;
    91   }
    9287
    9388  //SvL: 13-9-98: StarCraft uses bitmap with negative height
     
    111106  {
    112107    char PalSize;
    113     DIBSection *dsect = new DIBSection((BITMAPINFOHEADER_W *)&pbmi->bmiHeader, (char *)&pbmi->bmiColors, iUsage, (DWORD)res, fFlip);
     108    DIBSection *dsect;
     109
     110    dsect = new DIBSection((BITMAPINFOHEADER_W *)&pbmi->bmiHeader, (char *)&pbmi->bmiColors, iUsage, hSection, dwOffset, (DWORD)res, fFlip);
    114111
    115112    if(dsect != NULL)
Note: See TracChangeset for help on using the changeset viewer.