This commit is contained in:
Ben Fry
2015-06-19 17:12:25 -04:00
2 changed files with 9 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ public class PSurfaceAWT extends PSurfaceNone {
*/
canvas = new SmoothCanvas();
// if (useStrategy) {
canvas.setIgnoreRepaint(true);
//canvas.setIgnoreRepaint(true);
// }
// Pass tab key to the sketch, rather than moving between components
@@ -210,6 +210,12 @@ public class PSurfaceAWT extends PSurfaceNone {
// System.out.println("painting");
// if (useStrategy) {
render();
/*
if (graphics != null) {
System.out.println("drawing to screen " + canvas);
screen.drawImage(graphics.image, 0, 0, sketchWidth, sketchHeight, null);
}
*/
// } else {
//// new Exception("painting").printStackTrace(System.out);
@@ -1428,4 +1434,4 @@ public class PSurfaceAWT extends PSurfaceNone {
void debug(String format, Object ... args) {
System.out.format(format + "%n", args);
}
}
}

View File

@@ -367,4 +367,4 @@ public class PSurfaceNone implements PSurface {
}
}
}
}
}