[haiku-commits] Re: r35905 - in haiku/trunk: headers/os/interface headers/private/interface src/kits/interface src/servers/app src/servers/app/drawing ...

  • From: Stefano Ceccherini <stefano.ceccherini@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 19 Mar 2010 10:44:31 +0100

2010/3/18 Stephan Assmus <superstippi@xxxxxx>:

> Yes, it should be only used in ServerPicture, since it's a local class in
> that file. But it's main purpose seems to be to iterate an existing BShape
> to copy all it's data, and then draw this shape with the appropriate view
> to screen transformation. So it seems to be an expensive way to memcpy()
> the shape data and apply the transformation on the point data. But since
> the transformation is no longer necessary, I believe it can be thrown out.

Another thing it can be used for:
Iterate on a BShape to construct its containing rectangle, without drawing it.
At least, I can see uses of it.

Other related posts: