Browse Source

libpipi: fix a sign bug in the GDI loader.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2909 92316355-f0b4-4df1-b90c-862c8a59935f
remotes/tiles
sam 16 years ago
parent
commit
77d650ccf5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      pipi/codec/gdi.c

+ 1
- 1
pipi/codec/gdi.c View File

@@ -60,7 +60,7 @@ pipi_image_t *pipi_load_gdi(const char *name)
binfo.bmiHeader.biBitCount = 32;
binfo.bmiHeader.biCompression = BI_RGB;
binfo.bmiHeader.biHeight = - abs(binfo.bmiHeader.biHeight);
if(!GetDIBits(hdc, hbmap, 0, binfo.bmiHeader.biHeight, data,
if(!GetDIBits(hdc, hbmap, 0, abs(binfo.bmiHeader.biHeight), data,
&binfo, DIB_RGB_COLORS))
{
ReleaseDC(0, hdc);


Loading…
Cancel
Save