Re: Flickering display (using RGB buffer to write on a DrawingArea)
- From: Bruno Renier <brenier irisa fr>
- To: gtk-app-devel-list gnome org
- Subject: Re: Flickering display (using RGB buffer to write on a DrawingArea)
- Date: Wed, 27 Jun 2007 11:25:15 +0200
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_buffered function.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Thanks. I tried that, but that didn't work.
By the way, aren't gdk_window_begin_paint_rect and gdk_window_end_paint
automatically called before and after (respectively) the expose-event
when double buffering is switched on for a GtkWidget ?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]