gdi32: "StretchDIBits" with value of zero for "xSrc" and "ySrc"

Mathias Kosch info at mkosch.de
Sun Jul 11 17:11:55 CDT 2010


This patch fixes Bug#13344.

The function "StretchDIBits" behaves odd in case of "top-down" bitmaps
and certain coordinates and dimensions. 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. The test case doesn't check
all related input values, for simplicity. It passes under "Windows
Server 2003 R2 SP2" and Wine wine-1.2-rc7 with this path applied.

The previously submitted test case entirely failed for some old
Windows versions. This is a hint that the tested functionality might
not be supported on these Windows versions. I added a check which only
runs the test case on Windows versions with a major version number of
5 or above.
--
Mathias Kosch <info at mkosch.de> | http://mkosch.de/
PGP Public Key: http://mkosch.de/pubkey

Nachrichten auf SPIEGEL ONLINE: http://www.spiegel.de/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-gdi32-StretchDIBits-with-value-of-zero-for-xSrc-and-.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100712/d1860cd2/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 830 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100712/d1860cd2/attachment.pgp>


More information about the wine-patches mailing list