Added Display.getDesktopDisplayMode()

This commit is contained in:
Elias Naur 2008-10-02 07:34:22 +00:00
parent f109841108
commit a7accb99a0
1 changed files with 11 additions and 0 deletions

View File

@ -205,6 +205,17 @@ public final class Display {
}
}
/**
* Return the initial desktop display mode.
*
* @return The desktop display mode
*/
public static DisplayMode getDesktopDisplayMode() {
synchronized (GlobalLock.lock) {
return initial_mode;
}
}
/**
* Return the current display mode, as set by setDisplayMode().
*