home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / 20591 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  1.1 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!ctcvax.ccf.swri.edu!trident!io.datasys.swri.edu!johns
  2. Newsgroups: comp.windows.x
  3. Subject: XDrawArc Bug?
  4. Message-ID: <237@io.trident.datasys.swri.edu>
  5. From: johns@io.datasys.swri.edu (Stephen Johns)
  6. Date: 28 Dec 92 22:24:42 GMT
  7. Sender: johns@trident.datasys.swri.edu
  8. Organization: Southwest Research Institute, San Antonio
  9. Lines: 19
  10.  
  11. In a program that handles graphic primitives, including circles, I allow
  12. the user to zoom in.
  13.  
  14. As I zoom into an area, has to be pretty tight, with a circle(arc) in it
  15. I start getting [sqrt: DOMAIN error] in my console window.  If I get too many
  16. of the [sqrt: DOMAIN error] errors, the server locks up.  I have determined
  17. that it is the XDrawArc call that is generating the errors.  The typical
  18. x and y values these errors seem to occur are:
  19. -3,000 < x < 3,000
  20.  3,000 < y < 3,000
  21.  
  22. Typical width and height values:
  23. 0 < width  < 15,000
  24. 0 < height < 15,000
  25.  
  26. Are these values getting to big/small?  The man page says XDrawArc takes
  27. x and y as ints and width and height as unsigned ints.
  28.  
  29. Any help greatly appreciated.
  30.