From b0b1e3fb9c0f915cdf8d237c0f61a9d08ca83b01 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 17 Nov 2010 10:46:01 +0100 Subject: 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 .. --- src/newt/classes/com/jogamp/newt/impl/windows/WindowsWindow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newt/classes') 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); } //---------------------------------------------------------------------- -- cgit v1.2.3