Tue Jul 7 20:51:20 2009, comment #10:
Just in case of disaster, I attach the fills.patch file fixing the bugs exposed by fills.as. Plan to commit them after the tests in fills.as are integrated into DrawingApiTest.as and runner.
(file #18379)
|
Tue Jul 7 20:43:33 2009, comment #9:
The attached fills.as contain more tests which fail with current gnash, and for which I already implemented fixes.
Note that the yellow stroked square behaves in odd ways, leaving leaking fills with pp 9 and using smaller stroke thickness in pp 10.
(file #18378)
|
Tue Jul 7 20:35:52 2009, comment #8:
I've noticed that the pp version 10 gives a FAIL in DrawingApiTest.swf, whereas version 9 doesn't:
FAILED: x.hitTest(122, 157, true) [/usr/src/gnash/gnash-head/testsuite/misc-ming.all/DrawingApiTest.as:255]
Does seem related to auto-closup of filled paths
|
Tue Jul 7 11:16:40 2009, comment #7:
Tests added.
|
Thu Jul 2 14:23:51 2009, comment #6:
The attached bf2.as contains comment showing
where the problem lies (it's 2 of them)
(file #18352)
|
Thu Jul 2 14:15:20 2009, comment #5:
If anyone feels like adding the testcase to the existing
misc-ming.all/DrawingApiTest.as and related runner I'll try to fix.
|
Thu Jul 2 13:29:42 2009, comment #4:
I've also verified that a beginFill does instead force closeup of previous shape. Even if the fill parameters are the same.
|
Thu Jul 2 13:28:43 2009, comment #3:
The problem is that the call to lineStyle forces closeup of the current shape. I've tried having last lineStyle call use a different color to see if that should make a difference, but NOPE: the adobe player still considers it a single rectangle. No forced closeup.
|
Thu Jul 2 13:25:57 2009, comment #2:
More interesting things if you do make 'n' and 'a' available
in the .as file:
n = 10;
a = 100;
Gnash renders a diagonal line, the pp doesn't.
Indeed the AS code doesn't contain any diagonal line
AFAICS
|
Fri Apr 24 09:33:30 2009, comment #1:
The bug is visible in this real-life case:
http://www.alex-uhlmann.de/flash/animationpackage/ap1/de/alex_uhlmann/animationpackage/drawing/SuperShape_preview.swf
it also has other problems, namely enormous memory usage and not displaying the main shape.
Seems to be free software, so I'm attaching it too.
(file #18006)
|
Fri Apr 24 09:28:49 2009, original submission:
The following code (attached as AS and SWF) should create a solid square. Gnash only fills half the square. The problem is in the two lineStyle changes.
createEmptyMovieClip("mc", 4);
with(mc)
{
col = 0xff0000;
colc = 100;
x = 20;
y = 20;
xr = 100;
yr = 100;
beginFill(col,colc);
lineStyle(n,1,a);
moveTo(x,y);
lineTo(x+xr,y);
lineStyle(n,1,a);
lineTo((x+xr),(y+yr));
lineStyle(n,1,a);
lineTo(x,(y+yr));
lineTo(x,y);
endFill();
}
|