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