diff options
-rw-r--r-- | src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java b/src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java index 35458b9cc..c4b27a451 100644 --- a/src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java +++ b/src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java @@ -256,8 +256,12 @@ public class NewtCanvasSWT extends Canvas implements NativeWindowHolder, WindowC return r; } private Rectangle getClientArea2InPixels() { - // SWTAccessor.getClientAreaInPixels(this); - return DPIUtil.autoScaleUp(getClientArea2()); + if( SWTAccessor.isOSX ) { + return DPIUtil.autoScaleUp(getClientArea2()); + } else { + // Essentially the same as: DPIUtil.autoScaleUp(getClientArea()) + return SWTAccessor.getClientAreaInPixels(this); + } } @Override |