aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-08-04 07:32:56 +0000
committerKenneth Russel <[email protected]>2008-08-04 07:32:56 +0000
commit3224cf710cd4eaaca51d42dfd7302579be412498 (patch)
treef21ad4c6792ff60341ede609675fdf824b9263e4 /src/classes
parent6975077ab287a60b78132ede463da3cc63b2a4b1 (diff)
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
Diffstat (limited to 'src/classes')
-rwxr-xr-xsrc/classes/com/sun/javafx/newt/windows/WindowsWindow.java9
1 files changed, 7 insertions, 2 deletions
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;
}