[haiku-development] Re: Keymap preflet, offscreen drawing

Stephan Assmus wrote :

Did you make the view transparent? view->SetViewColor(B_TRANSPARENT_COLOR); This will prevent the app_server from clearing the background before calling your Draw(). In turn, you need to draw every pixel of your view, which will be the case if your bitmap is of the same size as the view.


Thanks, that helped!
It was already set in the MapView constructor though, and doing it in AttachedToWindow() didn't work either, i had to do it after adding it to its parent view.

Regards,
Alex

Other related posts: