home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- 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
- From: mark@sidefx.uucp (Mark Elendt)
- Subject: Problem with bgnpoint on ELAN under 4.0.5F
- Message-ID: <C1HBMF.LyB@sidefx.uucp>
- Summary: When using bgnpoint/endpoint colors aren't drawn correctly.
- Keywords: ELAN bgnpoint endpoint IRIX 4.0.5F
- Organization: Side Effects Software Inc.
- Date: Tue, 26 Jan 1993 20:59:02 GMT
- Lines: 50
-
-
- I'm having a problem with bgnpoint/endpoint on an ELAN running
- IRIX 4.0.5F. When the following program is run, instead of a
- green fill, I get a pure white fill when bgnpoint/endpoint is used.
- The program runs just fine on a vanilla Indigo, an XS24, a 4D20,
- and on a 4D35. However, not all of these machines were running
- IRIX 4.0.5F.
-
- I'm wondering if this has been fixed in a later version of IRIX,
- or if anyone has a workaround (I'm not too keen on using rectfi()
- or recti() to draw a single pixel).
-
- --- CUT HERE ----- CUT HERE ----- CUT HERE ---- CUT HERE ---
- /* cc % -lgl_s
- */
- #include <stdio.h>
-
- #define WINSIZ 100
-
- main()
- {
- int v[2];
-
- foreground();
- prefsize(WINSIZ, WINSIZ);
- winopen("Elan Test");
- RGBmode();
- singlebuffer();
- gconfig();
-
- RGBcolor((short)255, (short)0, (short)0);
- clear();
- printf("1) There should be a red square\n");
- sleep(2);
-
- RGBcolor((short)0, (short)255, (short)0);
- bgnpoint();
- for (v[0] = 0; v[0] < WINSIZ; v[0]++)
- for (v[1] = 0; v[1] < WINSIZ; v[1]++)
- v2i(v);
- endpoint();
- printf("2) There should be a green square\n");
- sleep(2);
- }
- --- CUT HERE ----- CUT HERE ----- CUT HERE ---- CUT HERE ---
-
- ___________________________________________________________________
- Mark Elendt Side Effects Software Inc.,
- UUCP: mark@sidefx.uucp Toronto, Ontario Canada
- Internet: sidefx!mark@canrem.com (416) 366-4607
-