[Gtk-sharp-list] DrawingArea flickering - how to stop erasing background
eskimobob
martin at berriman.co.uk
Tue Jul 3 21:05:55 UTC 2012
I did eventually figure this out. The problem seemed to be that I was not
explicitly disposing of the ImageSurface. All I had to do in the end was
dispose of the surface and then immediately recreate it before drawing onto
it - the flickering was then gone
private void UpdateViewSurface()
{
if (viewSurface != null)
{
viewSurface.Dispose();
}
viewSurface = new ImageSurface(Format.ARGB32,
main_drawingarea.Allocation.Width, main_drawingarea.Allocation.Height);
using (Context cr = new Context(viewSurface))
{
<snip>
--
View this message in context: http://mono.1490590.n4.nabble.com/DrawingArea-flickering-how-to-stop-erasing-background-tp4649911p4650295.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list
mailing list