소스 검색

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


불러오는 중...
취소
저장