aboutsummaryrefslogtreecommitdiffstats
path: root/test/jake2
diff options
context:
space:
mode:
Diffstat (limited to 'test/jake2')
-rw-r--r--test/jake2/render/TestMap.java2
-rw-r--r--test/jake2/render/TestRenderer.java7
2 files changed, 5 insertions, 4 deletions
diff --git a/test/jake2/render/TestMap.java b/test/jake2/render/TestMap.java
index f127a19..3dd89fd 100644
--- a/test/jake2/render/TestMap.java
+++ b/test/jake2/render/TestMap.java
@@ -84,7 +84,7 @@ public class TestMap
// sehr wichtig !!!
VID.Shutdown();
- Globals.re = this.re = Renderer.getDriver("jogl2", true);
+ Globals.re = this.re = Renderer.getDriver("joglgl2", true);
re.Init(0, 0);
diff --git a/test/jake2/render/TestRenderer.java b/test/jake2/render/TestRenderer.java
index a1a9515..3c0bb7f 100644
--- a/test/jake2/render/TestRenderer.java
+++ b/test/jake2/render/TestRenderer.java
@@ -35,10 +35,11 @@ import jake2.sys.KBD;
import jake2.util.Lib;
import jake2.util.Math3D;
-import java.awt.Dimension;
import java.nio.FloatBuffer;
import java.util.*;
+import javax.media.nativewindow.util.Dimension;
+
/**
* TestRenderer
*
@@ -75,7 +76,7 @@ public class TestRenderer {
Locale.setDefault(Locale.US);
Jake2.Q2Dialog.setVisible(true);
- String DRIVER = "jogl2";
+ String DRIVER = "joglgl2";
Qcommon.Init(new String[] { "TestRenderer", "+set", "gl_mode", "6",
"+set", "vid_fullscreen", "0", "+set", "vid_ref", DRIVER });
@@ -125,7 +126,7 @@ public class TestRenderer {
Dimension wal = new Dimension();
re.DrawGetPicSize(wal, "/textures/e1u1/basemap.wal");
- re.DrawPic(0, viddef.getHeight() - wal.height, "/textures/e1u1/basemap.wal");
+ re.DrawPic(0, viddef.getHeight() - wal.getHeight(), "/textures/e1u1/basemap.wal");
switch (testnr) {
case 0: