winex11.drv: Re-add the optimization for blending 1x1 pixel bitmaps.

Vincent Povirk vincent at codeweavers.com
Mon Sep 14 13:39:37 CDT 2009


The important part of the 1x1 source image optimization of AllphaBlend is that we can avoid setting the transform. This was removed because there are plans to reuse bitmap pictures, and we will have to account for the possibility that the transform was already set.

This is not a problem for tiling 1x1 images because ANY transform will produce a solid fill (but it will be much slower if a transform is set). It is a problem for 1x1 sections of larger images, so I've changed the test to use the size of the source bitmap instead of the size being copied.

This makes builtin gdiplus's semi-transparent fills fast again.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090914/3fcc7037/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-winex11.drv-Re-add-the-optimization-for-blending-1x.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090914/3fcc7037/attachment.txt>


More information about the wine-patches mailing list