From eff7e24ea4852bfbc0492f88b52210fe4515fdbe Mon Sep 17 00:00:00 2001 From: Holger Zickner Date: Mon, 23 Aug 2004 20:49:12 +0000 Subject: - better vid mode selection when switching between window and fullscreen - new configurable window mode 11 vid_wdth x vid_height (CAVE!) --- src/jake2/render/JoglBase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/jake2/render') diff --git a/src/jake2/render/JoglBase.java b/src/jake2/render/JoglBase.java index f29b0d2..b0b3771 100644 --- a/src/jake2/render/JoglBase.java +++ b/src/jake2/render/JoglBase.java @@ -2,7 +2,7 @@ * JoglCommon.java * Copyright (C) 2004 * - * $Id: JoglBase.java,v 1.6 2004-08-19 20:49:56 hzi Exp $ + * $Id: JoglBase.java,v 1.7 2004-08-23 20:49:12 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -104,6 +104,7 @@ public abstract class JoglBase implements GLEventListener { if (m.getBitDepth() != oldDisplayMode.getBitDepth()) continue; if (m.getRefreshRate() > oldDisplayMode.getRefreshRate()) continue; + if (m.getHeight() < 240 || m.getWidth() < 320) continue; int j = 0; DisplayMode ml = null; -- cgit v1.2.3