home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / fj / maillis / xwindow / 18949 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  1.3 KB

  1. Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
  2. From: johns@io.datasys.swri.edu (Stephen Johns)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: XDrawArc Bug?
  5. Message-ID: <1992Dec29.050643.27897@sm.sony.co.jp>
  6. Date: 29 Dec 92 05:06:43 GMT
  7. Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
  8. Distribution: fj
  9. Organization: Southwest Research Institute, San Antonio
  10. Lines: 24
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: 28 Dec 92 22:24:42 GMT
  14. Message-Id: <237@io.trident.datasys.swri.edu>
  15. Newsgroups: comp.windows.x
  16. Sender: xpert-request@expo.lcs.mit.edu
  17.  
  18. In a program that handles graphic primitives, including circles, I allow
  19. the user to zoom in.
  20.  
  21. As I zoom into an area, has to be pretty tight, with a circle(arc) in it
  22. I start getting [sqrt: DOMAIN error] in my console window.  If I get too many
  23. of the [sqrt: DOMAIN error] errors, the server locks up.  I have determined
  24. that it is the XDrawArc call that is generating the errors.  The typical
  25. x and y values these errors seem to occur are:
  26. -3,000 < x < 3,000
  27.  3,000 < y < 3,000
  28.  
  29. Typical width and height values:
  30. 0 < width  < 15,000
  31. 0 < height < 15,000
  32.  
  33. Are these values getting to big/small?  The man page says XDrawArc takes
  34. x and y as ints and width and height as unsigned ints.
  35.  
  36. Any help greatly appreciated.
  37.