home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sgi / 19172 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.8 KB  |  62 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!spool.mu.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!uunet.ca!canrem!sidefx!mark
  3. From: mark@sidefx.uucp (Mark Elendt)
  4. Subject: Problem with bgnpoint on ELAN under 4.0.5F
  5. Message-ID: <C1HBMF.LyB@sidefx.uucp>
  6. Summary: When using bgnpoint/endpoint colors aren't drawn correctly.
  7. Keywords: ELAN bgnpoint endpoint IRIX 4.0.5F
  8. Organization: Side Effects Software Inc.
  9. Date: Tue, 26 Jan 1993 20:59:02 GMT
  10. Lines: 50
  11.  
  12.  
  13. I'm having a problem with bgnpoint/endpoint on an ELAN running
  14. IRIX 4.0.5F.  When the following program is run, instead of a
  15. green fill, I get a pure white fill when bgnpoint/endpoint is used.
  16. The program runs just fine on a vanilla Indigo, an XS24, a 4D20,
  17. and on a 4D35.  However, not all of these machines were running
  18. IRIX 4.0.5F.
  19.  
  20. I'm wondering if this has been fixed in a later version of IRIX,
  21. or if anyone has a workaround (I'm not too keen on using rectfi()
  22. or recti() to draw a single pixel).
  23.  
  24. --- CUT HERE ----- CUT HERE ----- CUT HERE ---- CUT HERE ---
  25.     /* cc % -lgl_s
  26.      */
  27.     #include <stdio.h>
  28.  
  29.     #define WINSIZ    100
  30.  
  31.     main()
  32.     {
  33.     int        v[2];
  34.  
  35.     foreground();
  36.     prefsize(WINSIZ, WINSIZ);
  37.     winopen("Elan Test");
  38.     RGBmode();
  39.     singlebuffer();
  40.     gconfig();
  41.  
  42.     RGBcolor((short)255, (short)0, (short)0);
  43.     clear();
  44.     printf("1) There should be a red square\n");
  45.     sleep(2);
  46.  
  47.     RGBcolor((short)0, (short)255, (short)0);
  48.     bgnpoint();
  49.     for (v[0] = 0; v[0] < WINSIZ; v[0]++)
  50.         for (v[1] = 0; v[1] < WINSIZ; v[1]++)
  51.         v2i(v);
  52.     endpoint();
  53.     printf("2) There should be a green square\n");
  54.     sleep(2);
  55.     }
  56. --- CUT HERE ----- CUT HERE ----- CUT HERE ---- CUT HERE ---
  57.  
  58. ___________________________________________________________________
  59. Mark Elendt                Side Effects Software Inc.,
  60. UUCP:      mark@sidefx.uucp        Toronto, Ontario Canada
  61. Internet: sidefx!mark@canrem.com    (416) 366-4607
  62.