Re: How I can do Double Buffer without OpenGL Ext?
- From: Claudio Saavedra <csaavedra gnome org>
- To: gtk-app-devel-list gnome org
- Subject: Re: How I can do Double Buffer without OpenGL Ext?
- Date: Thu, 11 Feb 2010 20:21:22 +0200
El jue, 11-02-2010 a las 11:41 -0300, Gustavo Rojas escribiÃ:
Hi,
I'm working in avoid the flicker when i paint my widget draw area. Then my
questions are the following:
How i can to do double buffer?
Strictly speaking, all GTK+ widgets have double buffer support enabled
by default (see the documentation for GtkWidget:double-buffered,
gtk_widget_set_double_buffered() and [1], for an overview of the way
double-buffer works in GTK+).
Chances are that you are not painting in your expose event callback, or
that you are calling this callback directly instead of invalidating the
widget or region to redraw (see gdk_window_invalidate_region() and
gtk_widget_queue_draw()).
If you still have issues, feel free to post a small test case, showing
your issue.
Claudio
[1]
http://library.gnome.org/devel/gtk/unstable/chap-drawing-model.html#double-buffering
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]