GoogleCodeArchive / piccolo2d

Automatically exported from code.google.com/p/piccolo2d
0 stars 0 forks source link

wrong line width when drawing general shapes under SWT #188

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by berthold...@gmail.com on 21 Aug 2010 at 6:31

GoogleCodeExporter commented 9 years ago

Original comment by heue...@gmail.com on 24 Aug 2010 at 2:38

GoogleCodeExporter commented 9 years ago

Original comment by heue...@gmail.com on 21 Dec 2010 at 10:09

GoogleCodeExporter 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.

Original comment by heue...@gmail.com on 21 Dec 2010 at 10:13

GoogleCodeExporter 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.

Original comment by heue...@gmail.com on 21 Dec 2010 at 10:18

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by atdi...@gmail.com on 27 Mar 2011 at 2:14

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

Original comment by atdi...@gmail.com on 27 Mar 2011 at 2:16