Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!uwm.edu!lll-winken!arisia!sgi!shinobu!odin!horus!thant From: thant@horus.sgi.com (Thant Tessman) Newsgroups: comp.sys.sgi Subject: Re: REDRAW question Message-ID: <1628@odin.SGI.COM> Date: 27 Nov 89 17:46:36 GMT References: <21289@uflorida.cis.ufl.EDU> Sender: news@odin.SGI.COM Reply-To: thant@horus.sgi.com (Thant Tessman) Distribution: usa Organization: Silicon Graphics, Inc. Lines: 20 In article <21289@uflorida.cis.ufl.EDU>, pff@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