Re: Using a DIB to reduce number of calls to X

2004-11-13 Thread William Poetra Yoga H
--- Arjen Nienhuis <[EMAIL PROTECTED]> 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

Using a DIB to reduce number of calls to X

2004-11-13 Thread Arjen Nienhuis
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