aboutsummaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes
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/nativewindow/classes
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/nativewindow/classes')
-rw-r--r--src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java b/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java
index 6df43bd0f..89ca40096 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 @@ public abstract class JAWTWindow implements NativeWindow, OffscreenLayerSurface,
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["+