From e5e7514d649cd7dd28bbb8e04b72338dc09c2c83 Mon Sep 17 00:00:00 2001 From: Glenn Burkhardt Date: Mon, 6 Mar 2023 08:46:16 -0500 Subject: Fix for AWT GLCcanvas DPI scaling. Forum thread https://forum.jogamp.org/DPI-scaling-not-working-td4042206.html --- src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nativewindow') 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["+ -- cgit v1.2.3