diff --git a/src/jogl/classes/com/jogamp/opengl/awt/GLCanvas.java b/src/jogl/classes/com/jogamp/opengl/awt/GLCanvas.java index 0d1b272bad..602671f6e3 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 void run() { _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 { diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java b/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java index 6df43bd0ff..89ca400969 100644 --- a/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java +++ b/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java @@ -392,6 +392,7 @@ protected final boolean updateLockedData(final JAWT_Rectangle jawtBounds, final public final boolean updatePixelScale(final GraphicsConfiguration gc, final boolean clearFlag) { if( JAWTUtil.getPixelScale(gc, minPixelScale, maxPixelScale) ) { hasPixelScaleChanged = true; + System.arraycopy(maxPixelScale, 0, hasPixelScale, 0, 2); if( DEBUG ) { System.err.println("JAWTWindow.updatePixelScale: updated req["+ reqPixelScale[0]+", "+reqPixelScale[1]+"], min["+