diff options
Diffstat (limited to 'test/jake2/render/TestRenderer.java')
-rw-r--r-- | test/jake2/render/TestRenderer.java | 7 |
1 files changed, 4 insertions, 3 deletions
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: |