mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
enable retina in lwjgl
This commit is contained in:
@@ -169,6 +169,12 @@ public class PSurfaceLWJGL implements PSurface {
|
||||
fullScreenRequested = true;
|
||||
}
|
||||
|
||||
if (graphics.is2X()) {
|
||||
// http://forum.lwjgl.org/index.php?topic=5084.0
|
||||
System.setProperty("org.lwjgl.opengl.Display.enableHighDPI", "true");
|
||||
// pgl.pixel_scale = 2;
|
||||
}
|
||||
|
||||
// sketchWidth = sketch.width = sketch.sketchWidth();
|
||||
// sketchHeight = sketch.height = sketch.sketchHeight();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user