Changeset 2909 for libpipi


Ignore:
Timestamp:
Oct 11, 2008, 3:30:53 AM (12 years ago)
Author:
Sam Hocevar
Message:

libpipi: fix a sign bug in the GDI loader.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/codec/gdi.c

    r2902 r2909  
    6161    binfo.bmiHeader.biCompression = BI_RGB;
    6262    binfo.bmiHeader.biHeight = - abs(binfo.bmiHeader.biHeight);
    63     if(!GetDIBits(hdc, hbmap, 0, binfo.bmiHeader.biHeight, data,
     63    if(!GetDIBits(hdc, hbmap, 0, abs(binfo.bmiHeader.biHeight), data,
    6464                  &binfo, DIB_RGB_COLORS))
    6565    {
Note: See TracChangeset for help on using the changeset viewer.