From 4fea4c231a0ad580ac08146162acb38fa9d85409 Mon Sep 17 00:00:00 2001 From: Ian Brown Date: Tue, 4 Sep 2018 21:27:15 +0100 Subject: Fix HiDPI issues on windows --- src/main/java/org/jogamp/java3d/Canvas3D.java | 13 +++++++++++-- src/main/java/org/jogamp/java3d/CanvasViewEventCatcher.java | 9 ++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) (limited to 'src/main') diff --git a/src/main/java/org/jogamp/java3d/Canvas3D.java b/src/main/java/org/jogamp/java3d/Canvas3D.java index fe21197..a4f2b95 100644 --- a/src/main/java/org/jogamp/java3d/Canvas3D.java +++ b/src/main/java/org/jogamp/java3d/Canvas3D.java @@ -32,12 +32,14 @@ import java.awt.Container; import java.awt.Dimension; import java.awt.Frame; import java.awt.Graphics; +import java.awt.Graphics2D; import java.awt.GraphicsConfiguration; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; import java.awt.IllegalComponentStateException; import java.awt.Point; import java.awt.Window; +import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage; import java.util.ArrayList; import java.util.Hashtable; @@ -822,6 +824,8 @@ ArrayList textureIdResourceFreeList = new ArrayList(); // CanvasViewEventCatcher. Point newPosition = new Point(); Dimension newSize = new Dimension(); + double xscale = 1.0; + double yscale = 1.0; // Remember OGL context resources to free // before context is destroy. @@ -1228,10 +1232,15 @@ ArrayList textureIDResourceTable = new ArrayList