Re: gtk_drawing_area repaint
- From: Michael Torrie <torriem chem byu edu>
- To: gtk-app-devel-list gnome org
- Subject: Re: gtk_drawing_area repaint
- Date: Sat, 02 Oct 2004 21:51:11 -0600
On Sat, 2004-10-02 at 19:27, Maximo Pech wrote:
If i draw things in a gtk_drawing_area after covering the drawing_area all of them disappear. How can i
avoid this?. Do i have to paint all the things again?
Yes.
Most people use a gdk_pixbuf as a backing store. Draw to that, then
draw that to the gtk_drawing_area on expose. This is known as
double-buffering. If you don't double-buffer, then yes you will have to
redraw everything every time the window is exposed.
--
Michael Torrie <torriem chem byu edu>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]