[haiku-appserver] Re: clipping

  • From: Adi Oanca <adioanca@xxxxxxxxxxxxx>
  • To: haiku-appserver@xxxxxxxxxxxxx
  • Date: Fri, 25 Mar 2005 20:39:41 +0200

Stephan Assmus wrote:
>>>DrawBitmap(), the one which isn't actually implemented. In which 
>>>coordinate space is the clipreg member of PicturePlayer?
>>>Do all drawing commands allways get the screen coordinate system? 
>>>What 
>>>about scaled and scrolled BViews, is that taken into account 
>>>already? 
>>>If so, where is the origin of the scale supposed to be then?
>>
>>All drawing commands get screen coordinates. Quite literally the idea 
>>is that the DisplayDriver does no coodinate conversion whatsoever -- 
>>all that stuff is handled by the caller, better known as What You 
>>Call 
>>Is What You Get. :D
> 
> 
> Ok, then the clipping region should be in screen space as well, or all 
> this makes no sense. Since some of the current drawing functions seem 
> to already handle clipping, like at least FillRect() and StrokeLine() 
> from what I'm seeing, I would assume that all is well. When I have 
> implemented the Painter version, I will test for scrolled and scaled 
> BViews, maybe all is good, maybe there will be problems.

        Hehe, I'm sure there will be problems. :-)



Other related posts: