From 3c4648335ae6c87cfdfeccaf71c865752ea7c640 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Thu, 30 Nov 2006 17:21:39 +0000 Subject: hope this solves the pixel displacement problem on some Win32 systems --- src/jake2/render/opengl/Jsr231Driver.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/jake2/render') 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); -- cgit v1.2.3