Re: disabling auto background clear



Helmethead wrote:
> 
> On Thu, Apr 26, 2001 at 02:53:22PM +0100, John Cupitt wrote:
> > This is an easy one ... how do I stop my widget being automatically
> > cleared to the background colour on a configure? I want to redraw this
> > case myself.
> >
> > I looked over the GIMP sources, but I can't see what they're doing that
> > I'm not :-(
> >
> > Thanks for any pointers!
> 
> A window's bit gravity attribute tells xlib where to shunt bits 
> when a window gets resized, by default (in xlib) they are forgotten.
> Changing this value is unportable I assume.
> Or you could make the background not the background, and paint it as 
> part of the foreground I guess.

I'll try that, thanks!

Though this doesn't seem to be what GIMP is doing (grepping for 
gravity in the sources turns up nothing). If you resize a GIMP
image window larger, it doesn't clear and repaint, it just draws the
new edges that have appeared. How odd ...

John




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