diff options
author | Sven Gothel <[email protected]> | 2010-11-17 10:46:01 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-17 10:46:01 +0100 |
commit | b0b1e3fb9c0f915cdf8d237c0f61a9d08ca83b01 (patch) | |
tree | 97679e79ff3fc80f968728556928b684edcfdee4 /src/newt | |
parent | 984d1ef68ce7e353e9192fe3a4c3ec4ad7a2929c (diff) |
JAWTWindow: Avoid AWTTreeLock, cleanup.
Use native implementation for getLocationOnScreen() if available.
If unavailable call AWT's implementation only in case the AWT TreeLock is hold by this thread.
Finalize methods ..
Diffstat (limited to 'src/newt')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/impl/windows/WindowsWindow.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newt/classes/com/jogamp/newt/impl/windows/WindowsWindow.java b/src/newt/classes/com/jogamp/newt/impl/windows/WindowsWindow.java index 1691e4bf0..2c3ffc3cc 100644 --- a/src/newt/classes/com/jogamp/newt/impl/windows/WindowsWindow.java +++ b/src/newt/classes/com/jogamp/newt/impl/windows/WindowsWindow.java @@ -169,7 +169,7 @@ public class WindowsWindow extends WindowImpl { } protected Point getLocationOnScreenImpl(int x, int y) { - return (Point) GDI.GetRelativeLocation( getWindowHandle(), 0 /*root win*/, x, y); + return GDI.GetRelativeLocation( getWindowHandle(), 0 /*root win*/, x, y); } //---------------------------------------------------------------------- |