Huw Davies : gdi32: Fix return values in BitBlt/StretchBlt.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Apr 19 06:03:42 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 7f8ad07ee0c482802e8e44c3dc0a5bb1ecbf469c
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=7f8ad07ee0c482802e8e44c3dc0a5bb1ecbf469c
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Apr 18 22:12:15 2006 +0100
gdi32: Fix return values in BitBlt/StretchBlt.
---
dlls/gdi/bitblt.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdi/bitblt.c b/dlls/gdi/bitblt.c
index 25053e6..0d78465 100644
--- a/dlls/gdi/bitblt.c
+++ b/dlls/gdi/bitblt.c
@@ -112,7 +112,7 @@ BOOL WINAPI BitBlt( HDC hdcDst, INT xDst
width, height, bits, (BITMAPINFO*)&info_hdr, DIB_RGB_COLORS, rop);
HeapFree(GetProcessHeap(), 0, bits);
- return (lines == bm.bmHeight);
+ return (lines == height);
}
else if(dcDst)
GDI_ReleaseObj( hdcDst );
@@ -190,7 +190,7 @@ BOOL WINAPI StretchBlt( HDC hdcDst, INT
widthSrc, heightSrc, bits, (BITMAPINFO*)&info_hdr, DIB_RGB_COLORS, rop);
HeapFree(GetProcessHeap(), 0, bits);
- return (lines == bm.bmHeight);
+ return (lines == heightSrc);
}
else if(dcDst)
GDI_ReleaseObj( hdcDst );
More information about the wine-cvs
mailing list