luser-dr00g / xpost

A PostScript interpreter in C
Other
93 stars 12 forks source link

Bug in arc fill. #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. xpost_client
2. xpost_client_out.ppm contains incompletely filled circle

also exhibited by xpost_main with
3. 300 400 100 0 360 arc fill

What is the expected output? What do you see instead?

It should draw a big black circle. Instead there's a faint circular outline, 
and a chord from (0,+r) to (+r,0) is filled.

Please use labels and text to provide additional information.

Since the same problem is exhibited in 2 different devices, that traces it to 
the path operators. I now suspect it's the way arc creates its curves.

Original issue reported on code.google.com by luser.droog on 9 Oct 2014 at 9:12

GoogleCodeExporter commented 9 years ago
Adding a printf in _fillpoly shows we're getting 4 distinct subpaths. So that 
fishy.

Xpost version 0.0.1
PS>300 400 100 0 360 arc fill
_fillpoly
_fillpoly
_fillpoly
_fillpoly
PS>

Original comment by luser.droog on 9 Oct 2014 at 9:13

GoogleCodeExporter commented 9 years ago
Fixed in the latest commit 
http://code.google.com/p/xpost/source/detail?r=4e1b0aef6346b1fe760cd574a1e2a0c4a
d0765e2

Original comment by luser.droog on 10 Oct 2014 at 7:36