diff options
author | Carsten Weisse <[email protected]> | 2006-10-26 22:02:56 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2006-10-26 22:02:56 +0000 |
commit | 08d5dc327ea642eeaac8d9ad3aa2bf1c0cbd1986 (patch) | |
tree | 1d4cb1375ec4a6afb0585f3a92a169633adb7bdc /src/jake2/render/lwjgl | |
parent | 67f358ca73f408481f6ee7d32658d92be38585db (diff) |
switch to lwjgl 1.0beta3
(sound and gfx tested on MacBook Pro)
Diffstat (limited to 'src/jake2/render/lwjgl')
-rw-r--r-- | src/jake2/render/lwjgl/LWJGLBase.java | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/jake2/render/lwjgl/LWJGLBase.java b/src/jake2/render/lwjgl/LWJGLBase.java index 0767453..a16bbea 100644 --- a/src/jake2/render/lwjgl/LWJGLBase.java +++ b/src/jake2/render/lwjgl/LWJGLBase.java @@ -2,7 +2,7 @@ * LWJGLBase.java * Copyright (C) 2004 * - * $Id: LWJGLBase.java,v 1.2 2004-12-20 21:51:18 cawe Exp $ + * $Id: LWJGLBase.java,v 1.3 2006-10-26 22:02:56 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -29,6 +29,7 @@ import jake2.Defines; import jake2.client.VID; import jake2.client.viddef_t; import jake2.game.cvar_t; +import jake2.qcommon.Com; import jake2.qcommon.xcommand_t; import java.awt.Dimension; @@ -72,7 +73,13 @@ public abstract class LWJGLBase { public java.awt.DisplayMode[] getModeList() { - DisplayMode[] modes = Display.getAvailableDisplayModes(); + DisplayMode[] modes; + try { + modes = Display.getAvailableDisplayModes(); + } catch (LWJGLException e) { + Com.Println(e.getMessage()); + return new java.awt.DisplayMode[0]; + } LinkedList l = new LinkedList(); l.add(toAwtDisplayMode(oldDisplayMode)); @@ -106,7 +113,13 @@ public abstract class LWJGLBase { } public DisplayMode[] getLWJGLModeList() { - DisplayMode[] modes = Display.getAvailableDisplayModes(); + DisplayMode[] modes; + try { + modes = Display.getAvailableDisplayModes(); + } catch (LWJGLException e) { + Com.Println(e.getMessage()); + return new DisplayMode[0]; + } LinkedList l = new LinkedList(); l.add(oldDisplayMode); |