pixelDensity (OpenGL): fix 2x on Windows

This commit is contained in:
Jakub Valtar
2017-04-12 18:57:35 +02:00
parent b93f7c2c09
commit d94987cbce

View File

@@ -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));
}
}