aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes/com/sun
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-10-02 14:54:42 -0700
committerSven Gothel <[email protected]>2009-10-02 14:54:42 -0700
commit56cc5d5058f352d0a46679b67d4f6650e457cbb9 (patch)
tree82ddac98b354258fb70669dbcaf5c7a9ec31cde3 /src/newt/classes/com/sun
parent966fc409d440f6c4d0ff9dab38f0f83ada36735f (diff)
NEWT Intel GDL: Surface Size tuning .. ; Add missing getSurfaceHandle()
Diffstat (limited to 'src/newt/classes/com/sun')
-rw-r--r--src/newt/classes/com/sun/javafx/newt/intel/gdl/Window.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/newt/classes/com/sun/javafx/newt/intel/gdl/Window.java b/src/newt/classes/com/sun/javafx/newt/intel/gdl/Window.java
index 2c68a2054..3e4b5b90e 100644
--- a/src/newt/classes/com/sun/javafx/newt/intel/gdl/Window.java
+++ b/src/newt/classes/com/sun/javafx/newt/intel/gdl/Window.java
@@ -78,7 +78,7 @@ public class Window extends com.sun.javafx.newt.Window {
if(visible && 0==surfaceHandle) {
synchronized(Window.class) {
AbstractGraphicsDevice aDevice = screen.getDisplay().getGraphicsDevice();
- surfaceHandle = CreateSurface(aDevice.getHandle(), width, height);
+ surfaceHandle = CreateSurface(aDevice.getHandle(), screen.getWidth(), screen.getHeight(), x, y, width, height);
}
if (surfaceHandle == 0) {
throw new NativeWindowException("Error creating window");
@@ -117,6 +117,10 @@ public class Window extends com.sun.javafx.newt.Window {
((Display)screen.getDisplay()).setFocus(this);
}
+ public long getSurfaceHandle() {
+ return surfaceHandle;
+ }
+
//----------------------------------------------------------------------
// Internals only
//
@@ -126,7 +130,9 @@ public class Window extends com.sun.javafx.newt.Window {
private native void CloseSurface(long displayHandle, long surfaceHandle);
- private void updateSize(int width, int height) {
+ private void updateBounds(int x, int y, int width, int height) {
+ this.x = x;
+ this.y = y;
this.width = width;
this.height = height;
}