🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.sgi.bugs
1 messages
1 total messages Started by Frans van Hoesel Mon, 11 Jan 1993 14:03
splft2 or interp weirdness
#74
Author: Frans van Hoesel
Date: Mon, 11 Jan 1993 14:03
36 lines
1734 bytes
        - splft2 *or* interp does not work. Make a interpl window while using
          mwm instead of 4Dwm) of size 870*580 pop up the colormap, select
          color #3 (green) for the left color in interp and color #4 (yellow)
          for the rigth color. In the lower left corner of interp blue
          pixels will show up (color #5). The problem does not depend on mwm
          or 4Dwm, but does depend on the window size.


	  looking into the code of interp, this bug is most likely in splft2
	  because the argument to splft2 in interp are:

    intens[0] = startcolor;
    intens[1] = startcolor;
    intens[2] = endcolor;
    intens[3] = endcolor;

    parray[0][0] = MINX+1.0;
    parray[0][1] = MINY+1.0;
    parray[1][0] = MINX+1.0;
    parray[1][1] = MINY-1.0+(MAXY-MINY)*0.25;
    parray[2][0] = MAXX-1.0;
    parray[2][1] = MINY-1.0+(MAXY-MINY)*0.25;
    parray[3][0] = MAXX-1.0;
    parray[3][1] = MINY+1.0;

    splf2(4, parray, intens);

	  the float arguments must be exactly on a perfect rectangle, but
	  for some reason the result is wrong.

--frans
-- 
--    ==============================================================    --
----  ===  frans van hoesel             hoesel@igc.ethz.ch       ===  ----
--    ==============================================================    --
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads