From 77d650ccf516709df42334be35b56414589d7c21 Mon Sep 17 00:00:00 2001 From: sam Date: Sat, 11 Oct 2008 01:30:53 +0000 Subject: [PATCH] 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 --- pipi/codec/gdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipi/codec/gdi.c b/pipi/codec/gdi.c index 7d0cc14..652d6a4 100644 --- a/pipi/codec/gdi.c +++ b/pipi/codec/gdi.c @@ -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);