changeset 5847:b6fb603c0399

RT-34519 Rendering errors in NGRegion on SW pipeline after fix for RT-34055 Summary: Revert the fix to RT-34055 Reviewed-by: snorthov
author Daniel Blaukopf <daniel.blaukopf@oracle.com>
date Thu, 28 Nov 2013 18:17:54 +0200
parents 4455a18dd959
children 1db4c60bfd5b
files modules/graphics/src/main/java/com/sun/javafx/sg/prism/NGRegion.java
diffstat 1 files changed, 8 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/javafx/sg/prism/NGRegion.java	Thu Nov 28 10:41:34 2013 -0500
+++ b/modules/graphics/src/main/java/com/sun/javafx/sg/prism/NGRegion.java	Thu Nov 28 18:17:54 2013 +0200
@@ -906,16 +906,14 @@
         final float dstHeight = outsetsTop + height + outsetsBottom;
         final boolean sameWidth = textureWidth == dstWidth;
         final boolean sameHeight = textureHeight == dstHeight;
-
-        // Enlarge all edges by 0.5f for proper rendering at subpixel locations
-        final float dstX1 = -outsetsLeft - 0.5f;
-        final float dstY1 = -outsetsTop - 0.5f;
-        final float dstX2 = width + outsetsRight + 0.5f;
-        final float dstY2 = height + outsetsBottom + 0.5f;
-        final float srcX1 = rect.x - 0.5f;
-        final float srcY1 = rect.y - 0.5f;
-        final float srcX2 = rect.x + textureWidth + 0.5f;
-        final float srcY2 = rect.y + textureHeight + 0.5f;
+        final float dstX1 = -outsetsLeft;
+        final float dstY1 = -outsetsTop;
+        final float dstX2 = width + outsetsRight;
+        final float dstY2 = height + outsetsBottom;
+        final float srcX1 = rect.x;
+        final float srcY1 = rect.y;
+        final float srcX2 = srcX1 + textureWidth;
+        final float srcY2 = srcY1 + textureHeight;
 
         // If total destination width is < the source width, then we need to start
         // shrinking the left and right sides to accommodate. Likewise in the other dimension.