[user] static.c: PaintIcon fix background colour
n0dalus
n0dalus at gmail.com
Wed Nov 9 17:03:19 CST 2005
On 11/10/05, Michael Kaufmann <hallo at michael-kaufmann.ch> wrote:
> I've already created a little test program: Windows draws the background
> behind the icon, but not the entire client area. It should be easy to
> modify the existing code.
Yes, I see what you are talking about now.
>
> Your second patch (background for bitmaps in static controls) leaks the
> handle of the brush if GetPixel succeeds.
> If GetPixel fails you use the brush returned by SendMessage - but my
> test program shows that Windows doesn't paint the background at all in
> this case.
I wasn't sure about that. Should I fix my patches and resend them to
the list? Can you see anything wrong with my other patches?
>
> Regards
> Michael
>
Thankyou for your help,
n0dalus.
More information about the wine-devel
mailing list