From ef206c881a9fd462e52241fac506bee5441902ad Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 31 Jan 2023 04:27:30 +0100 Subject: Fix NewtFactoryAWT: screen.getMonitor(..) -> screen.getMonitorById(..); Misc left-over changes .. GDIUtil: Remove uncommented GetMonitorPixelScale(..) point variant JAWTUtil: Clarify Java version comment w/ spacing NEWT Display.getThreadName(): Return 'Thread[0x, ]' NEWT Screen: Add getFullyEnteredMonitor(..) NewtCanvasAWT: @SuppressWarnings for determineIfApplet() and use FQN within method --- src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java | 4 ++-- src/nativewindow/classes/jogamp/nativewindow/windows/GDIUtil.java | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'src/nativewindow') diff --git a/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java b/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java index 518abc491..86de6e30d 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java +++ b/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java @@ -664,7 +664,7 @@ public class JAWTUtil { boolean gotSXZ = false; if( !SKIP_AWT_HIDPI ) { if( null != gdGetCGDisplayIDMIDOnOSX ) { - // OSX specific for Java<9, preserving double type + // OSX specific for Java < 9, preserving double type try { final Object res = gdGetCGDisplayIDMIDOnOSX.invoke(device); if (res instanceof Integer) { @@ -676,7 +676,7 @@ public class JAWTUtil { } catch (final Throwable t) {} } if( !gotSXZ && null != gdGetScaleFactorMID ) { - // Generic for Java<9 + // Generic for Java < 9 try { final Object res = gdGetScaleFactorMID.invoke(device); if (res instanceof Integer) { diff --git a/src/nativewindow/classes/jogamp/nativewindow/windows/GDIUtil.java b/src/nativewindow/classes/jogamp/nativewindow/windows/GDIUtil.java index 9201c9881..c266fd3f3 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/windows/GDIUtil.java +++ b/src/nativewindow/classes/jogamp/nativewindow/windows/GDIUtil.java @@ -250,10 +250,6 @@ public class GDIUtil implements ToolkitProperties { public static boolean GetMonitorPixelScale(final long hmon, final float[] pixel_scale_xy) { return GDI.ShcGetMonitorPixelScale1(hmon, pixel_scale_xy, 0); } - /** - public static boolean GetMonitorPixelScale(final int x, final int y, final float[] pixel_scale_xy) { - return GDI.ShcGetMonitorPixelScale2(x, y, pixel_scale_xy, 0); - } */ public static void SetProcessThreadsAffinityMask(final long affinityMask, final boolean verbose) { SetProcessThreadsAffinityMask0(affinityMask, verbose); -- cgit v1.2.3