changeset 3380:472e658ac370

Update to workaround for RT-28435, workaround was hurting performance of non-rounded region backgrounds on Modena.
author "Jasper Potts"
date Fri, 19 Apr 2013 11:28:10 -0700
parents abbb69cf3719
children 8f11ed85f836
files javafx-sg-prism/src/com/sun/javafx/sg/prism/NGRegion.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-sg-prism/src/com/sun/javafx/sg/prism/NGRegion.java	Fri Apr 19 10:33:38 2013 +0200
+++ b/javafx-sg-prism/src/com/sun/javafx/sg/prism/NGRegion.java	Fri Apr 19 11:28:10 2013 -0700
@@ -709,7 +709,7 @@
                             final CornerRadii radii = fill.getRadii();
                             // This is a workaround for RT-28435 so we use path rasterizer for small radius's We are
                             // keeping old rendering
-                            if (radii.isUniform() && !(!PlatformImpl.isCaspian() && radii.getTopLeftHorizontalRadius() <= 4)) {
+                            if (radii.isUniform() && !(!PlatformImpl.isCaspian() && radii.getTopLeftHorizontalRadius() > 0 && radii.getTopLeftHorizontalRadius() <= 4)) {
                                 // If the radii is uniform then we know every corner matches, so we can do some
                                 // faster rendering paths.
                                 float tlhr = (float) radii.getTopLeftHorizontalRadius();