[OpenJDK 2D-Dev] RFR[14]: JDK-8230728 : Thin stroked shapes are not rendered if affine transform has flip bit

Laurent Bourgès bourges.laurent at gmail.com
Fri Sep 6 21:15:09 UTC 2019


Hi,

Please review this bug fix for the Marlin renderer (present in Pisces code
since JDK 6?):
JBS: https://bugs.openjdk.java.net/browse/JDK-8230728
webrev: http://cr.openjdk.java.net/~lbourges/marlin/marlin-8230728.0/

This patch fixes a NaN handling in userSpaceLineWidth() when the affine
transform determinant is negative (flip bit is ON)

Changes:
- MarlinRenderingEngine: use abs(at.getDeterminant()) to ensure positive
value before using sqrt
- FlipBitTest: new jtreg test reproducing the original problem drawing a
thin ellipse with a flipped transform

Cheers,
Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/2d-dev/attachments/20190906/110df0df/attachment-0001.html>


More information about the 2d-dev mailing list