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.
--- Arjen Nienhuis a.g.nienhuis@gmail.com 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).
- Is that a good idea? Any caveats?
- 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. www.yahoo.com