Re: avoid background painting GtkWindow



On 14 February 2011 10:49, Georg Mitterböck <mitterboeck lunatone com> wrote:
> But is it possible to do double-buffering without erasing the
> background?

No it's not. The back buffer needs to be initialised with something,
and it has to be the background colour of the widget. It can't do a
screengrab of that section of the window, performance would be
terrible, and in many cases the result would be incorrect.

One solution is to have a back buffer for the whole window, not just
the small expose event, and paint from that. The "scribble" example in
the tutorial does this, though I don't know if that would work for
you.

John


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