uxtheme: skip creation of temporary bitmap when painting a single tile

Alex Villací­s Lasso a_villacis at palosanto.com
Wed Apr 23 09:48:44 CDT 2008

On quite a few cases, the source and destination widths are such that 
only a single tile, or a portion of a single tile, will fit in the 
described area. In these cases, we can do away with the temporary bitmap 
and use the source HDC directly. Please apply after the patch that fixes 
the division-by-zero regression.

* Check whether a single tile is being painted, and if so, use source 
HDC directly without creating a temporary HDC/bitmap.

perl -e '$x=2.4;print sprintf("%.0f + %.0f = %.0f\n",$x,$x,$x+$x);'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-uxtheme-disable-membitmap-when-single-tile.patch
Type: text/x-patch
Size: 1085 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080423/7eeef479/attachment.bin 

More information about the wine-patches mailing list