[haiku-appserver] Re: moving windows using 2D HW ACC
- From: Adi Oanca <adioanca@xxxxxxxxxxxxx>
- To: haiku-appserver@xxxxxxxxxxxxx
- Date: Tue, 18 Jan 2005 19:19:25 +0200
Hi,
Rudolf wrote:
>> In the mean time I would like your opinions regarding those:
>>1. See which is the biggest rectangle in the new window's visible
>>region
>>and use 2D ACC to copy from old location.
>
> Correct.
>
>>Then copy all other rectangles
>
> All smaller rectangles of course can be copied using 2D acc as well.
> You simple make a list of all parts that are currently visible but need
> to be moved. That list you send as a single ACC command.
>
>>by copying them into main memory and then paste to new location.
>>(that
>>is if the new location overlaps the original location, else copy each
>>rect using HW ACC)
>
> Overlaps you do not need to concern yourself with. It's the task of the
> accelerant to blit in the right direction. Just give a source and dest
> rect list to the accelerant's command.
Oh, yeah baby! I'm so glad to hear this!
I'm *not* so glad :-) to admit how stupid I was. :-D I didn't even
looked at Accelerant.h before writing this email.
Thanks Rudolf for enlighten me!
Bye,
Adi.
Other related posts: