diff options
Diffstat (limited to 'src/jake2/client/VID.java')
-rw-r--r-- | src/jake2/client/VID.java | 5 |
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 ); |