diff options
-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); |