piccolo2d / piccolo2d.java

Structured 2D Graphics Framework
http://piccolo2d.org
Other
51 stars 14 forks source link

wrong line width when drawing general shapes under SWT #188

Closed mro closed 9 years ago

mro commented 9 years ago

Originally reported on Google Code with ID 188

What steps will reproduce the problem?
1.Define a PSWTPath with a polyline
2.Enlarge the scaling by a large scaling factor
3.

The line becomes too fat when the drawing is enlarged. Setting the linewidth to the
SWT graphic context in SWTGraphics2D before drawing fixes the problem (bd3):

    public void drawPath(final Path p) {
        gc.setLineWidth((int) (lineWidth + 0.5)); // bd3
        gc.setTransform(swtTransform);
        gc.drawPath(p);
        gc.setTransform(null);
    }

What version of the product are you using? 

1.3

Reported by berthold.daum on 2010-08-21 18:31:42

mro commented 9 years ago

Reported by heuermh on 2010-08-24 02:38:19

mro commented 9 years ago

Reported by heuermh on 2010-12-21 22:09:53

mro commented 9 years ago
Thanks for the patch, committed.

$ svn commit -m "Issue 188 ; applying patch contributed by berthold.daum at bdaum.de"
Committed revision 1088.

Reported by heuermh on 2010-12-21 22:13:46

mro commented 9 years ago
I have added you as a contributor to parent/pom.xml.  Please feel free to post a patch
with additional details (<name>, <url>, <timezone>, etc.) here or to piccolo2d-dev@
if you wish.

$ svn commit -m "adding berthold.daum at bdaum.de as contributor"
Committed revision 1089.

Reported by heuermh on 2010-12-21 22:18:41

mro commented 9 years ago

Reported by atdixon on 2011-03-27 02:14:28

mro commented 9 years ago
Verified on Windows, MacOSX, and Ubuntu. Note: issue only originally manifested itself
on Windows.

Reported by atdixon on 2011-03-27 02:16:13