Renamed DisplayMode.isFullscreen() to DisplayMode.isFullscreenCapable and made it public

This commit is contained in:
Elias Naur 2008-12-28 17:50:08 +00:00
parent 07ac2ee5b4
commit 825e724904
2 changed files with 3 additions and 3 deletions

View File

@ -351,7 +351,7 @@ public final class Display {
} }
private static void switchDisplayMode() throws LWJGLException { private static void switchDisplayMode() throws LWJGLException {
if ( !current_mode.isFullscreen() ) { if ( !current_mode.isFullscreenCapable() ) {
throw new IllegalStateException("Only modes acquired from getAvailableDisplayModes() can be used for fullscreen display"); throw new IllegalStateException("Only modes acquired from getAvailableDisplayModes() can be used for fullscreen display");
} }
display_impl.switchDisplayMode(current_mode); display_impl.switchDisplayMode(current_mode);
@ -524,7 +524,7 @@ public final class Display {
/** @return whether the Display is in fullscreen mode */ /** @return whether the Display is in fullscreen mode */
public static boolean isFullscreen() { public static boolean isFullscreen() {
synchronized (GlobalLock.lock) { synchronized (GlobalLock.lock) {
return fullscreen && current_mode.isFullscreen(); return fullscreen && current_mode.isFullscreenCapable();
} }
} }

View File

@ -76,7 +76,7 @@ public final class DisplayMode {
} }
/** True iff this instance can be used for fullscreen modes */ /** True iff this instance can be used for fullscreen modes */
boolean isFullscreen() { public boolean isFullscreenCapable() {
return fullscreen; return fullscreen;
} }