gdiplus: Create a GDI brush only when needed.

Dmitry Timoshkov dmitry at baikal.ru
Wed Feb 29 02:29:21 CST 2012


Vincent Povirk <madewokherd at gmail.com> wrote:

> The right solution is to remove the gdibrush and logbrush fields from
> GpBrush, and generate the HBRUSH as needed in brush_fill_path. Note
> that brush_fill_path will only be called for solid and hatch brushes
> (those for which brush_can_fill_path returns true), so we don't need
> the code to create a gdi brush for the other types.

Does the attached patch look better? Next step would be to get rid of bmp
in GpSolidFill structure.

-- 
Dmitry.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-gdiplus-Create-a-GDI-brush-only-when-needed.-Take-2.patch
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20120229/46325e57/attachment.ksh>


More information about the wine-devel mailing list