reapply stroke settings (#3331)

This commit is contained in:
Ben Fry
2015-06-08 18:47:31 -04:00
parent b8c7c5e7bd
commit 3eedabbbf6
2 changed files with 19 additions and 20 deletions

View File

@@ -313,10 +313,11 @@ public class PGraphicsJava2D extends PGraphics {
@Override
public void beginDraw() {
g2 = checkImage();
//g2 = (Graphics2D) image.getGraphics();
// Calling getGraphics() seems to nuke the smoothing settings
//smooth(quality);
// Calling getGraphics() seems to nuke several settings.
// It seems to be re-creating a new Graphics2D object each time.
// https://github.com/processing/processing/issues/3331
strokeImpl();
handleSmooth();
/*