home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / bugs / 100 next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.6 KB

  1. Path: sparky!uunet!pipex!doc.ic.ac.uk!uknet!mcsun!chsun!bernina!hoesel
  2. From: hoesel@igc.ethz.ch (Frans van Hoesel)
  3. Newsgroups: comp.sys.sgi.bugs
  4. Subject: splft2 or interp weirdness
  5. Message-ID: <1993Jan11.140316.19771@bernina.ethz.ch>
  6. Date: 11 Jan 93 14:03:16 GMT
  7. Sender: news@bernina.ethz.ch (USENET News System)
  8. Organization: University of Groningen, the Netherlands
  9. Lines: 36
  10.  
  11.  
  12.         - splft2 *or* interp does not work. Make a interpl window while using
  13.           mwm instead of 4Dwm) of size 870*580 pop up the colormap, select
  14.           color #3 (green) for the left color in interp and color #4 (yellow)
  15.           for the rigth color. In the lower left corner of interp blue
  16.           pixels will show up (color #5). The problem does not depend on mwm
  17.           or 4Dwm, but does depend on the window size.
  18.  
  19.  
  20.       looking into the code of interp, this bug is most likely in splft2
  21.       because the argument to splft2 in interp are:
  22.  
  23.     intens[0] = startcolor;
  24.     intens[1] = startcolor;
  25.     intens[2] = endcolor;
  26.     intens[3] = endcolor;
  27.  
  28.     parray[0][0] = MINX+1.0;
  29.     parray[0][1] = MINY+1.0;
  30.     parray[1][0] = MINX+1.0;
  31.     parray[1][1] = MINY-1.0+(MAXY-MINY)*0.25;
  32.     parray[2][0] = MAXX-1.0;
  33.     parray[2][1] = MINY-1.0+(MAXY-MINY)*0.25;
  34.     parray[3][0] = MAXX-1.0;
  35.     parray[3][1] = MINY+1.0;
  36.  
  37.     splf2(4, parray, intens);
  38.  
  39.       the float arguments must be exactly on a perfect rectangle, but
  40.       for some reason the result is wrong.
  41.  
  42. --frans
  43. -- 
  44. --    ==============================================================    --
  45. ----  ===  frans van hoesel             hoesel@igc.ethz.ch       ===  ----
  46. --    ==============================================================    --
  47.