diff options
author | Carsten Weisse <[email protected]> | 2006-11-30 17:21:39 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2006-11-30 17:21:39 +0000 |
commit | 3c4648335ae6c87cfdfeccaf71c865752ea7c640 (patch) | |
tree | 1d55602da7fff8a3848566a69a46018f4beda0b8 /src/jake2/render/opengl | |
parent | ea5f55c4b1de3178eceb839bd1a19f0c1823ad20 (diff) |
hope this solves the pixel displacement problem on some Win32 systems
Diffstat (limited to 'src/jake2/render/opengl')
-rw-r--r-- | src/jake2/render/opengl/Jsr231Driver.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/jake2/render/opengl/Jsr231Driver.java b/src/jake2/render/opengl/Jsr231Driver.java index fdc0f52..3b3ffb1 100644 --- a/src/jake2/render/opengl/Jsr231Driver.java +++ b/src/jake2/render/opengl/Jsr231Driver.java @@ -2,7 +2,7 @@ * JoglCommon.java * Copyright (C) 2004 * - * $Id: Jsr231Driver.java,v 1.10 2006-11-29 14:15:42 cawe Exp $ + * $Id: Jsr231Driver.java,v 1.11 2006-11-30 17:21:39 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -300,7 +300,7 @@ public abstract class Jsr231Driver extends Jsr231GL implements GLDriver { // -------------------------------------------------------------------------- private static class Display extends Canvas { - private GLDrawable drawable; + private GLDrawable drawable; private GLContext context; @@ -331,6 +331,12 @@ public abstract class Jsr231Driver extends Jsr231GL implements GLDriver { //paint(g); } + @Override + public void resize(int width, int height) { + super.resize(width, height); + getGL().glViewport(0, 0, width, width); + } + public void addNotify() { super.addNotify(); super.setBackground(Color.BLACK); |