Re: Flickering display (using RGB buffer to write on a DrawingArea)

2007-06-27 Thread Bruno Renier
Konstantin Evdokimenko wrote: > Use this on your expose event callback. > > gdk_window_begin_paint_rect(widget->window, & rect); > > /* Draw something */ > > gdk_window_end_paint(widget->window); > > And make sure that widget is double buffered (by default). > > Look at gtk_widget_set_double_buffer

Flickering display (using RGB buffer to write on a DrawingArea)

2007-06-26 Thread Bruno Renier
Hi! I'm currently writing an application that needs to redraw a whole GtkDrawingArea when new data arrives. It needs to draw a certain number of boxes based on the incoming data. The drawing area is updated maybe 100 times per second. I'm using a GdkRGB buffer that I update when new data arrive