[haiku-commits] Re: haiku: hrev44039 - src/kits/interface headers/os/interface src/preferences/keymap

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 20 Apr 2012 09:25:03 +0200

Hi,

On 19.04.2012 19:11, Adrien Destugues wrote:
To avoid the tearing and flickering, the solution is to draw to a
BBitmap, then copy the finished result to the actual BView.
The tearing happens because you are drawing a complex object with
several layers, and you can see the drawing as it goes. Using
fillroundrect will make things even worse, because it draws over the
whole button.

this is completely wrong information. app_server uses double buffered drawing, you can't see the buttons being layered. It's just that the update frequency of showing the window contents is slower than the frequency of showng the window border being resized. Drawing into a BBitmap would help nothing, it would only make it slower yet.

Best regards,
-Stephan



Other related posts: