Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!usc!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!msuinfo!buster!veerabad From: veerabad@buster.uucp (Vibhu Veerabadrappa) Newsgroups: comp.windows.x Subject: Re: XDrawRectangle w/ negative width/height? Message-ID: <1991Feb6.153235.26863@msuinfo.cl.msu.edu> Date: 6 Feb 91 15:32:35 GMT References: <2124@cs.rit.edu> Sender: news@msuinfo.cl.msu.edu Organization: Michigan State University, College of Engineering Lines: 40 In article <2124@cs.rit.edu> mxh5795@cs.rit.edu (Michael X Houwers) writes: > > > >Hello. I was wondering if there are any known bugs in the function >XDrawRectangle in Xlib. I was attempting to write a limited drawing I do not know if there are any bugs, but I too feel it is rather wierd. But if when I tried to draw a rectangle with negative width and height, without the rubberbanding, it works fine ... >program (boredom is a wonderful motivator...), which, at the moment >draws lines and rectangles with a "rubberbanding" effect. To draw a >line in the drawing window, you hold down the left mouse button and [ Stuff deleted ] >So, the question is: can you specify a negative width or height for >a rectangle with no unexpected side effects, and, if that is legal, >are there any known bugs when doing this? > >Any help would be greatly appreciated.. One way to eliminate the trail, as I did, is to draw the rectangle from the "other" corner, with positive width and height. > >Thanks, Sorry, I could not answer your question fully. >mike houwers ----Vibhu. >-- >--------------------------------------------------------------------------- >Michael Houwers "I'm not sleazy, I"m morally challenged" >bitnet: MWH5795@RITVAXA >internet: mxh5795@cs.rit.edu