aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/client
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-07-15 16:16:24 +0000
committerHolger Zickner <[email protected]>2004-07-15 16:16:24 +0000
commit0f7d8b8bab6c018dfb19e9c295bb501b990f2b85 (patch)
treed672a6a28495acfa2f0fcdb45450a2df5377281b /src/jake2/client
parent45ce3ee8b859419460082ed61ffcbaac7a28aac1 (diff)
fullscreen modes work again
Diffstat (limited to 'src/jake2/client')
-rw-r--r--src/jake2/client/VID.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jake2/client/VID.java b/src/jake2/client/VID.java
index 0eec17a..6ef8f1c 100644
--- a/src/jake2/client/VID.java
+++ b/src/jake2/client/VID.java
@@ -2,7 +2,7 @@
* VID.java
* Copyright (C) 2003
*
- * $Id: VID.java,v 1.6 2004-07-15 14:37:35 hzi Exp $
+ * $Id: VID.java,v 1.7 2004-07-15 16:16:24 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -121,6 +121,8 @@ public class VID extends Globals {
static vidmode_t fs_modes[];
public static boolean GetModeInfo(Dimension dim, int mode) {
+ if (fs_modes == null) initModeList();
+
vidmode_t[] modes = vid_modes;
if (vid_fullscreen.value != 0.0f) modes = fs_modes;
@@ -664,7 +666,6 @@ public class VID extends Globals {
** VID_MenuInit
*/
public static void MenuInit() {
- if (fs_resolutions == null) initModeList();
if ( gl_driver == null )
gl_driver = Cvar.Get( "gl_driver", "jogl", 0 );