| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2c63764 commit 6bdcfef
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -169,6 +169,12 @@ public Frame initFrame(PApplet sketch, Color backgroundColor, | |||
| 169 | 169 | fullScreenRequested = true; | |
| 170 | 170 | } | |
| 171 | 171 | ||
| 172 | + if (graphics.is2X()) { | ||
| 173 | + // http://forum.lwjgl.org/index.php?topic=5084.0 | ||
| 174 | + System.setProperty("org.lwjgl.opengl.Display.enableHighDPI", "true"); | ||
| 175 | + // pgl.pixel_scale = 2; | ||
| 176 | + } | ||
| 177 | + | ||
| 172 | 178 | // sketchWidth = sketch.width = sketch.sketchWidth(); | |
| 173 | 179 | // sketchHeight = sketch.height = sketch.sketchHeight(); | |
| 174 | 180 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments