From dd694ef6042fdf2d978a978d3750acac2c25557d Mon Sep 17 00:00:00 2001 From: Ian Brown Date: Sun, 30 Sep 2018 18:30:49 -0700 Subject: j3d-core: Fix HiDPI issues on Windows Signed-off-by: Harvey Harrison --- src/javax/media/j3d/Canvas3D.java | 14 ++++++++++++-- src/javax/media/j3d/CanvasViewEventCatcher.java | 7 +++++-- 2 files changed, 17 insertions(+), 4 deletions(-) (limited to 'src/javax') diff --git a/src/javax/media/j3d/Canvas3D.java b/src/javax/media/j3d/Canvas3D.java index 080bd18..8824191 100644 --- a/src/javax/media/j3d/Canvas3D.java +++ b/src/javax/media/j3d/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; @@ -820,6 +822,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. @@ -1227,9 +1231,15 @@ ArrayList textureIDResourceTable = new ArrayList