diff options
author | Sven Gothel <[email protected]> | 2013-10-16 14:28:27 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-10-16 14:28:27 +0200 |
commit | b831ebadcaea1eea7370f7ec0bffc59eaba7a5ba (patch) | |
tree | da1bbe7671b27db55859b5beb9dc0fe6fc750e3b /src/nativewindow/classes/jogamp | |
parent | 12d1142d197afb17828056252282fb5a6186b325 (diff) |
Add efficient set(..all..) to Dimension, Insets, Point and Rectangle of NativeWindow's util types.
Diffstat (limited to 'src/nativewindow/classes/jogamp')
-rw-r--r-- | src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java b/src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java index dc32bd58c..0d498fa54 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java +++ b/src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java @@ -113,8 +113,7 @@ public class OSXUtil implements ToolkitProperties { if(topLevel) { // top-level position -> client window position final Insets insets = GetInsets(windowOrView); - los.setX(los.getX() + insets.getLeftWidth()); - los.setY(los.getY() + insets.getTopHeight()); + los.set(los.getX() + insets.getLeftWidth(), los.getY() + insets.getTopHeight()); } return los; } |