[comp.windows.news] fill bug

marshall@software.ORG (Eric Marshall) (07/24/88)

	The following program demonstrates a bug in the fill
operator. When the window becomes slightly taller than wide,
the right leg of the star gets truncated. The program executes
correctly when the fill operator is replaced with stroke.

I am running on a Sun 3/160 running SunOS 3.4.


Eric Marshall
Software Productivity Consortium
1880 North Campus Commons Drive
Reston, VA 22091
(703) 391-1838

CSNET: marshall@software.org
ARPANET: marshall%software.org@relay.cs.net  OR
         @relay.cs.net:marshall@software.org

----- 8< ----- 8< ----- 8< ----- 8< ----- 8< ----- 8< ----- 8< ----- 8< -----

/star {
  clippath pathbbox scale pop pop
  0.2 0 moveto 0.5 1 lineto 0.8 0 lineto
  0 0.65 lineto 1 0.65 lineto closepath fill
} def

/win framebuffer /new DefaultWindow send def

{
  /PaintClient { star } def
} win send

/reshapefromuser win send
/map win send