From 3224cf710cd4eaaca51d42dfd7302579be412498 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Mon, 4 Aug 2008 07:32:56 +0000 Subject: Don't consider window to be full-screen if window implementation doesn't support it git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1740 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/com/sun/javafx/newt/windows/WindowsWindow.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/classes') diff --git a/src/classes/com/sun/javafx/newt/windows/WindowsWindow.java b/src/classes/com/sun/javafx/newt/windows/WindowsWindow.java index 626f98199..e520b8394 100755 --- a/src/classes/com/sun/javafx/newt/windows/WindowsWindow.java +++ b/src/classes/com/sun/javafx/newt/windows/WindowsWindow.java @@ -101,8 +101,13 @@ public class WindowsWindow extends Window { public boolean setFullscreen(boolean fullscreen) { if(this.fullscreen!=fullscreen) { - this.fullscreen=fullscreen; - return setFullScreen0(windowHandle, fullscreen); + boolean res = setFullScreen0(windowHandle, fullscreen); + if (fullscreen && res) { + this.fullscreen = true; + } else { + this.fullscreen = false; + } + return fullscreen; } return true; } -- cgit v1.2.3