aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl
diff options
context:
space:
mode:
authorGöthel Software <[email protected]>2023-03-08 17:31:37 +0100
committerGitHub <[email protected]>2023-03-08 17:31:37 +0100
commit0571fafebee846b77de5740d23fc141810897f84 (patch)
tree2d241c1281379b2bf26f9fe50dc11d7a558e95d9 /src/jogl
parentcda90eeef4607511dd1f6432f770dd4fefe7dd1c (diff)
parente5e7514d649cd7dd28bbb8e04b72338dc09c2c83 (diff)
Merge pull request #110 from gbburkhardt/master
Fix for AWT GLCcanvas DPI scaling. Forum thread https://forum.jogamp…
Diffstat (limited to 'src/jogl')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/awt/GLCanvas.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/awt/GLCanvas.java b/src/jogl/classes/com/jogamp/opengl/awt/GLCanvas.java
index 0d1b272ba..602671f6e 100644
--- a/src/jogl/classes/com/jogamp/opengl/awt/GLCanvas.java
+++ b/src/jogl/classes/com/jogamp/opengl/awt/GLCanvas.java
@@ -662,8 +662,14 @@ public class GLCanvas extends Canvas implements AWTGLAutoDrawable, WindowClosing
_lock.unlock();
}
} };
+
private final boolean setSurfaceScaleImpl(final ScalableSurface ns) {
- if( ns.setSurfaceScale(reqPixelScale) ) {
+ if(DEBUG) {
+ System.err.printf("GLCanvas.setSurfaceScaleImpl reqPixelScale %.2f %.2f, hasPixelScale %.2f %.2f\n",
+ reqPixelScale[0], reqPixelScale[1], hasPixelScale[0], hasPixelScale[1]);
+ }
+
+ if( ns.setSurfaceScale(hasPixelScale) ) {
ns.getCurrentSurfaceScale(hasPixelScale);
return true;
} else {