REDRAW question

Thant Tessman thant at horus.sgi.com
Tue Nov 28 04:46:36 AEST 1989


In article <21289 at uflorida.cis.ufl.EDU>, pff at beach.cis.ufl.edu (Pablo
Fernicola) writes:
> In a program that I am working on, whenever the window gets redrawn the
> ghosts of the previous border stays inside the window.
> 
> In that window I make use of writemask, but I thought that using it wouldn't
> have any effects on a clear() instruction.  Am I right?

'clear()' uses the current writemask.  Try:

	case REDRAW:
		tmp = getwritemask();
		writemask(0xfff)  /* or RGBwritemask(0xffffffff) */
		color(whatever); clear();
		writemask(tmp);
		...

Have fun,

thant



More information about the Comp.sys.sgi mailing list