gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [bug #26329] Drawing API bug


From: Nutchanon Wetchasit
Subject: [Gnash-commit] [bug #26329] Drawing API bug
Date: Mon, 08 Feb 2016 15:22:57 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:25.8) Gecko/20151123 Firefox/31.9 PaleMoon/25.8.1

Follow-up Comment #11, bug #26329 (project gnash):

This problem is still reproducible on current Gnash git version, @bwy's
test file (file #18005) is still showing a filled triangle. @strk's patch
(file #18379) doesn't seem to apply on current codebase anymore.

I have made another test SWF file (using libming's makeswf) which tries to
re-demonstate this problem on both object filling and stroking, and also
include point-based `MovieClip.hitTest()` checks on the resulting shape.

This is a correct result from Adobe Flash Player:
http://i.imgur.com/mfaS7BS.png

Player's trace output from the run:

PASSED: Center part of star polygon should be filled
PASSED: Top part of star polygon should be filled
PASSED: Top-right part of star polygon should be filled
PASSED: Bottom-right part of star polygon should be filled
PASSED: Bottom-left part of star polygon should be filled
PASSED: Top-left part of star polygon should be filled
PASSED: Top-right part of outer pentagon should not be filled
PASSED: Bottom-right part of outer pentagon should not be filled
PASSED: Bottom part of outer pentagon should not be filled
PASSED: Bottom-left part of outer pentagon should not be filled
PASSED: Top-left part of outer pentagon should not be filled
PASSED: Right edge of top part of star polygon should be stroked
PASSED: Top edge of top-right part of star polygon should be stroked
PASSED: Bottom edge of top-right part of star polygon should not be stroked
PASSED: Right edge of bottom-right part of star polygon should not be stroked
PASSED: Left edge of bottom-right part of star polygon should be stroked
PASSED: Right edge of bottom-left part of star polygon should be stroked
PASSED: Left edge of bottom-left part of star polygon should not be stroked
PASSED: Bottom edge of top-left part of star polygon should not be stroked
PASSED: Top edge of top-left part of star polygon should not be stroked
PASSED: Left edge of top part of star polygon should not be stroked
PASSED: Top-right edge of outer pentagon should not be stroked
PASSED: Bottom-right edge of outer pentagon should not be stroked
PASSED: Bottom edge of outer pentagon should not be stroked
PASSED: Bottom-left edge of outer pentagon should not be stroked
PASSED: Top-left edge of outer pentagon should not be stroked


You'd see that the code rendered as a filled star with two unconnected
border lines, and all point-based `MovieClip.hitTest()` checks on the shape
are all passing.

This is an image result from Gnash:
http://i.imgur.com/ijx8lkQ.png

Gnash's trace output from the run:

131 TRACE: FAILED: Center part of star polygon should be filled
131 TRACE: FAILED: Top part of star polygon should be filled
131 TRACE: FAILED: Top-right part of star polygon should be filled
131 TRACE: FAILED: Bottom-right part of star polygon should be filled
131 TRACE: FAILED: Bottom-left part of star polygon should be filled
132 TRACE: FAILED: Top-left part of star polygon should be filled
132 TRACE: FAILED: Top-right part of outer pentagon should not be filled
132 TRACE: FAILED: Bottom-right part of outer pentagon should not be filled
132 TRACE: FAILED: Bottom part of outer pentagon should not be filled
132 TRACE: FAILED: Bottom-left part of outer pentagon should not be filled
132 TRACE: FAILED: Top-left part of outer pentagon should not be filled
132 TRACE: PASSED: Right edge of top part of star polygon should be stroked
132 TRACE: PASSED: Top edge of top-right part of star polygon should be
stroked
132 TRACE: FAILED: Bottom edge of top-right part of star polygon should not be
stroked
132 TRACE: FAILED: Right edge of bottom-right part of star polygon should not
be stroked
132 TRACE: PASSED: Left edge of bottom-right part of star polygon should be
stroked
132 TRACE: PASSED: Right edge of bottom-left part of star polygon should be
stroked
133 TRACE: FAILED: Left edge of bottom-left part of star polygon should not be
stroked
133 TRACE: FAILED: Bottom edge of top-left part of star polygon should not be
stroked
133 TRACE: FAILED: Top edge of top-left part of star polygon should not be
stroked
133 TRACE: FAILED: Left edge of top part of star polygon should not be
stroked
133 TRACE: FAILED: Top-right edge of outer pentagon should not be stroked
133 TRACE: PASSED: Bottom-right edge of outer pentagon should not be stroked
133 TRACE: FAILED: Bottom edge of outer pentagon should not be stroked
133 TRACE: PASSED: Bottom-left edge of outer pentagon should not be stroked
133 TRACE: PASSED: Top-left edge of outer pentagon should not be stroked


You'd see that the code rendered as a filled pentagon with star-shaped hole
instead, and two lines drawn are also closed in loop. Point-based
`MovieClip.hitTest()` checks on the shape are also mostly failing.

Test SWF, source code, build script, screenshots, and logs are attached as
`linereset-star.zip`.

Gnash: 0.8.11dev (git 435d3e9 6-Feb-2016)
Adobe Flash Player: 11.2 r202 (11.2.202.491) Standalone
System: Debian GNU/Linux 7.0 Wheezy i386

(file #36276)
    _______________________________________________________

Additional Item Attachment:

File name: linereset-star.zip             Size:24 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?26329>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]