Changeset 5252 for trunk/src


Ignore:
Timestamp:
Feb 23, 2001, 11:37:42 AM (25 years ago)
Author:
sandervl
Message:

SetDIBitsToDevice fix

File:
1 edited

Legend:

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

    r4968 r5252  
    1 /* $Id: blit.cpp,v 1.23 2001-01-18 21:09:34 sandervl Exp $ */
     1/* $Id: blit.cpp,v 1.24 2001-02-23 10:37:42 sandervl Exp $ */
    22
    33/*
     
    128128    if (!cx || !cy) goto invalid_parameter;
    129129
    130     // EB: ->>> Crazy. Nobody seen this Open32 bug ?
    131     // Dont't like dirty pointers, but Open32 needs a bit help.
    132     // Only tested with winmine.
    133     palsize = QueryPaletteSize((BITMAPINFOHEADER*)&info->bmiHeader);
    134     imgsize = CalcBitmapSize(info->bmiHeader.biBitCount,
    135                              info->bmiHeader.biWidth, info->bmiHeader.biHeight);
    136     ptr = ((char *)info) + palsize + sizeof(BITMAPINFOHEADER);
    137     if(bits >= ptr && bits < ptr + imgsize)
    138     {
    139         bits = (char *)bits - imgsize +
    140                    CalcBitmapSize(info->bmiHeader.biBitCount,
    141                                   info->bmiHeader.biWidth, lines);
    142     }
    143     // EB: <<<-
    144 
    145130    //SvL: RP7's bitmap size is not correct; fix it here or else
    146131    //     the blit is messed up in Open32
Note: See TracChangeset for help on using the changeset viewer.