diff options
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r-- | src/newt/classes/jogamp/newt/OffscreenWindow.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/newt/classes/jogamp/newt/OffscreenWindow.java b/src/newt/classes/jogamp/newt/OffscreenWindow.java index be07cda0a..299bb1f73 100644 --- a/src/newt/classes/jogamp/newt/OffscreenWindow.java +++ b/src/newt/classes/jogamp/newt/OffscreenWindow.java @@ -140,8 +140,7 @@ public class OffscreenWindow extends WindowImpl implements MutableSurface { @Override public Point getLocationOnScreen(final Point storage) { if(null!=storage) { - storage.set(0, 0); - return storage; + return storage.set(0, 0); } return new Point(0,0); } |