changeset 5915:d0b4bb09641b

Fix RT-34854: bad stroke widths on texture-based stroked rectangles Reviewed by: Kevin
author flar <James.Graham@oracle.com>
date Thu, 12 Dec 2013 15:51:47 -0800
parents b6f3f3d2ef2d
children 63a950c66105
files modules/graphics/src/main/java/com/sun/prism/impl/ps/BaseShaderGraphics.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/prism/impl/ps/BaseShaderGraphics.java	Fri Dec 13 08:39:21 2013 +1300
+++ b/modules/graphics/src/main/java/com/sun/prism/impl/ps/BaseShaderGraphics.java	Thu Dec 12 15:51:47 2013 -0800
@@ -1161,8 +1161,8 @@
         float ov0 = 0.5f * hscale;
         float ouc = ((w * 0.5f + pad) * dxdist + 1.0f) * wscale;
         float ovc = ((h * 0.5f + pad) * dydist + 1.0f) * hscale;
-        float offsetx = lw * wscale;
-        float offsety = lw * hscale;
+        float offsetx = lw * dxdist * wscale;
+        float offsety = lw * dydist * hscale;
         VertexBuffer vb = context.getVertexBuffer();
         if (xform.isTranslateOrIdentity()) {
             x0 += mxt;