瀏覽代碼

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 年之前
父節點
當前提交
77d650ccf5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      pipi/codec/gdi.c

+ 1
- 1
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);


Loading…
取消
儲存