From 9470cc7ef725e95a9318f1cde8114ea4397fe941 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Tue, 21 Nov 2006 01:20:48 +0000 Subject: better driver init (solves conflicts with config.cfg) --- test/jake2/render/DancingQueens.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'test/jake2') diff --git a/test/jake2/render/DancingQueens.java b/test/jake2/render/DancingQueens.java index 345ace5..a68fbbe 100644 --- a/test/jake2/render/DancingQueens.java +++ b/test/jake2/render/DancingQueens.java @@ -2,7 +2,7 @@ * DancingQueens.java * Copyright (C) 2003 * - * $Id: DancingQueens.java,v 1.10 2006-11-21 00:48:14 cawe Exp $ + * $Id: DancingQueens.java,v 1.11 2006-11-21 01:20:48 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -71,19 +71,21 @@ public class DancingQueens { Locale.setDefault(Locale.US); Jake2.Q2Dialog.setVisible(true); - Qcommon.Init(new String[] { "DancingQueens", "+set", "gl_mode", "5", - "+set", "vid_fullscreen", "0" }); + String DRIVER = "jsr231"; + + Qcommon.Init(new String[] { "DancingQueens", "+set", "gl_mode", "4", + "+set", "vid_fullscreen", "0", "+set", "vid_ref", DRIVER }); // sehr wichtig !!! VID.Shutdown(); String[] names = Renderer.getDriverNames(); System.out.println("Registered Drivers: " + Arrays.asList(names)); - this.re = Renderer.getDriver("jsr231"); + this.re = Renderer.getDriver(DRIVER); Globals.re = this.re; System.out.println("Use driver: " + re); - System.out.println(); + System.out.flush(); re.Init(0, 0); kbd = re.getKeyboardHandler(); -- cgit v1.2.3