mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 13:49:18 +01:00
pixelDensity (OpenGL): fix 2x on Windows
This commit is contained in:
@@ -953,8 +953,8 @@ public class PSurfaceJOGL implements PSurface {
|
||||
public void reshape(GLAutoDrawable drawable, int x, int y, int w, int h) {
|
||||
pgl.resetFBOLayer();
|
||||
pgl.getGL(drawable);
|
||||
window.getCurrentSurfaceScale(currentPixelScale);
|
||||
setSize((int) (w / currentPixelScale[0]), (int) (h / currentPixelScale[1]));
|
||||
float scale = getPixelScale();
|
||||
setSize((int) (w / scale), (int) (h / scale));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user