Using a DIB to reduce number of calls to X

William Poetra Yoga H williampoetra at
Sat Nov 13 13:25:12 CST 2004

--- Arjen Nienhuis <a.g.nienhuis at> wrote:

> GradientFill can be implemented by drawing to a DIB, and then blting
> that DIB to the screen. This will reduce the number of calls to X from
> O(n) to O(1).
> 1. Is that a good idea? Any caveats?
> 2. Can that method be used elsewhere?
> I'll try to implement it right away.
> P.S.
> We do implement the alpha part of GradientFill the same as Windows.
> The comments might sugest otherwise.

Great. Then painting a gradient caption bar shouldn't slow the system down :)

Do you Yahoo!? 
Check out the new Yahoo! Front Page. 

More information about the wine-devel mailing list