other notes

This commit is contained in:
Ben Fry
2015-04-25 05:10:55 -04:00
parent b3a064574c
commit f8c36b6ff7
@@ -2,7 +2,15 @@ package processing.core;
public class PGraphicsDanger2D extends PGraphicsJava2D {
// doesn't exist/not necessary because Java2D will do this automatically
//static final boolean HIDPI = true;
//static final boolean HIDPI = false;
public PGraphicsDanger2D() {
// if (HIDPI) {
// pixelFactor = 2;
// }
}
@Override
public PSurface createSurface() {
@@ -14,6 +22,10 @@ public class PGraphicsDanger2D extends PGraphicsJava2D {
public void beginDraw() {
//g2 = checkImage(); // already set g2
// if (HIDPI) {
// g2.scale(2, 2);
// }
// Calling getGraphics() seems to nuke the smoothing settings
smooth(quality);