Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!uw-beaver!ubc-cs!news-server.csri.toronto.edu!smoke.cs.toronto.edu!neat.cs.toronto.edu!moraes From: moraes@cs.toronto.edu (Mark Moraes) Newsgroups: comp.windows.x Subject: Re: Problems w/XDrawRectangle, rubberbanding Keywords: XDrawRectangle, rubberband Message-ID: <90Sep30.183132edt.421@smoke.cs.toronto.edu> Date: 30 Sep 90 22:33:05 GMT References: <1990Sep27.161240.14668@swbatl.sbc.com> Organization: Department of Computer Science, University of Toronto Lines: 16 I use something like this to create GCs for rubberbanding. GC createxorgc(dpy, win, fgcol, bgcol) Display *dpy; Window win; Pixel fgcol, bgcol; { XGCValues gcv; gcv.foreground = fgcol ^ bgcol; gcv.background = bgcol; gcv.function = GXxor; return XCreateGC(dpy, win, (GCForeground | GCBackground | GCFunction), &gcv); }