diff options
author | Sven Gothel <[email protected]> | 2020-01-12 04:12:29 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-01-12 04:12:29 +0100 |
commit | e3e671e3ca63235830a2ebf7875650a4c86ce18e (patch) | |
tree | a05841e019b78b1066aa69a8ae1262cf86e09b82 /src/newt | |
parent | f6a5ae588440ff873fd72f3b52956e7b02d4e728 (diff) |
NativeWindow Point.set*(..): Return instance for scaling (chaining)
Diffstat (limited to 'src/newt')
-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); } |