Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU (der Mouse) Newsgroups: comp.windows.x Subject: Re: Using XPolygonRegion for getting pointer locations Message-ID: <9007192340.AA13039@Larry.McRCIM.McGill.EDU> Date: 19 Jul 90 23:40:21 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 21 > I have almost finished [...]. The problems I had at first were... > and an error in my translation algorithm caused the regions not to > be scaled so I ended up with a tiny region but a large filled > polygon (you can't see the little suckers so it's hard to debug > something like this...) > It would be nice if there was a routine that could read what youv'e > written into a region and display it as a polygon... Simple enough: XSetRegion() the region as the clipping region of a GC and then XFillRectangle() the whole window using that GC. Hmmm, you probably want just the outline. That's more difficult. You could probably hack it by displaying four times with GXxor, changing the clip offsets each time. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu