mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
other notes
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user