Re: [gtk-list] double buffering question



Amit Kumar wrote:
> is there any way of copying/cloning/duplicating a pixmap from another
> one? basically each time i do a redraw, i want to copy 'A' to 'B',
> then draw the rect, and then redisplay.

 GdkPixmap *gdkpixmap;
 GdkBitmap *mask;
 GtkPixmap *pixmap_B;

 (...)

 gtk_pixmap_get (pixmap_A, &gdkpixmap, &mask);
 pixmap_B = gtk_pixmap_new (gdkpixmap, mask);



 As long as you want them to look the same, this should
work.

--
Pedro Medeiros.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]