diff options
author | Sven Gothel <[email protected]> | 2011-10-13 03:49:14 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-10-13 03:49:14 +0200 |
commit | 96c50e94f4dbc0e18762a97c026b7e6986cea8e7 (patch) | |
tree | ce42f5905af08820fdbabe74be8f31a1dbc25ccd /src/nativewindow/classes | |
parent | e7329d99aa6b44b976d0a5d2dd6f0d19c25d661c (diff) |
NEWT/OSX: Fix resize behavior / Cleanup coordinate transormation (client-space/top-level, child/parent)
At resizing a perent window w/ a NEWT OSX child,
the window position needs to be updated since it's absolute.
Re-adding sending *Changed notifications via the appropriate WindowImpl methods.
Turns out they are missing in some parent/child situations (fullscreen for example).
Native getLocationOnScreen0(..) queries totalHeight by it's own to have correct values.
Diffstat (limited to 'src/nativewindow/classes')
-rw-r--r-- | src/nativewindow/classes/javax/media/nativewindow/util/Point.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nativewindow/classes/javax/media/nativewindow/util/Point.java b/src/nativewindow/classes/javax/media/nativewindow/util/Point.java index 0a5036eda..c53b16928 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/util/Point.java +++ b/src/nativewindow/classes/javax/media/nativewindow/util/Point.java @@ -97,4 +97,10 @@ public class Point implements Cloneable, PointImmutable { return this; } + public Point scale(int sx, int sy) { + x *= sx ; + y *= sy ; + return this; + } + } |