Ignore:
Timestamp:
May 19, 2000, 8:42:14 PM (25 years ago)
Author:
sandervl
Message:

palette bugfix for dibsection setdibits

File:
1 edited

Legend:

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

    r3527 r3567  
    1 /* $Id: dibsect.cpp,v 1.30 2000-05-12 19:14:55 sandervl Exp $ */
     1/* $Id: dibsect.cpp,v 1.31 2000-05-19 18:42:14 sandervl Exp $ */
    22
    33/*
     
    348348
    349349   dprintf(("DIBSection::SetDIBits (%d,%d), %d %d", pbmi->biWidth, pbmi->biHeight, pbmi->biBitCount, pbmi->biCompression));
    350    if(palsize)
    351         memcpy(pOS2bmp->argbColor, (char *)pbmi + 1 , palsize);
     350   if(palsize) {
     351        SetDIBColorTable(0, 1 << pbmi->biBitCount, (RGBQUAD *)(pbmi+1));
     352   }
    352353
    353354   if(bits)
     
    418419        hdcWidth  = pOS2bmp->cx;
    419420  }
    420 
    421 #if 0
    422   nXdest = 0;
    423   nYdest = 0;
    424   nXsrc  = 0;
    425   nXsrc  = 0;
    426   nDestWidth = pOS2bmp->cx;
    427   nDestHeight = pOS2bmp->cy;
    428   nSrcWidth = pOS2bmp->cx;
    429   nSrcHeight = pOS2bmp->cy;
    430 #endif
    431421
    432422  //win32 coordinates are of the left top, OS/2 expects left bottom
Note: See TracChangeset for help on using the changeset viewer.