[NEXT TRY] gdi32: "StretchDIBits" with value of zero for "xSrc" and "ySrc"

Mathias Kosch info at mkosch.de
Mon Dec 1 16:38:16 CST 2008


Please include this patch in the next wine version.
If not, please comment on it. I didn't receive any response to my
previous two mails.

This patch fixes Bug#13344.

The function "StretchDIBits" behaves odd in case of "top-down" bitmaps
with values of zero for "xSrc" and "ySrc". Tests using Windows Server
2003 shew that in this particular case the source rectangle is
selected starting at the upper left corner of the bitmap. In all other
cases the rectangle is aligned to the bottom of the bitmap.

I provided a test case which tests several combinations, especially
those with some of the values set to zero. It passes under "Windows
Server 2003 R2 SP2" and Wine 1.1.9 (only) with this path applied.
-- 
Mathias Kosch <info at mkosch.de> | http://www.mkosch.de/
RSA Public Key: http://www.mkosch.de/pubkey

Linux Live-CD mit KDE: http://www.knopper.net/knoppix/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-gdi32-StretchDIBits-with-value-of-zero-for-xSrc.patch
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20081201/08b47d4d/attachment-0001.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 829 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081201/08b47d4d/attachment-0001.pgp 


More information about the wine-patches mailing list