From 5f078a7c0fc6118aeaa94bf4879038cf39ade0b3 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Tue, 2 Oct 2007 10:57:27 +0000 Subject: Fixed Issue 317: GLJPanel handleReshape bug Fixed obvious bug in algorithm as per submitter's comment. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1381 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/javax/media/opengl/GLJPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/classes/javax/media/opengl') diff --git a/src/classes/javax/media/opengl/GLJPanel.java b/src/classes/javax/media/opengl/GLJPanel.java index e6c96c10d..2d4e84d77 100644 --- a/src/classes/javax/media/opengl/GLJPanel.java +++ b/src/classes/javax/media/opengl/GLJPanel.java @@ -965,7 +965,7 @@ public class GLJPanel extends JPanel implements GLAutoDrawable { // Use factor larger than 2 during shrinks for some hysteresis float shrinkFactor = 2.5f; if ((panelWidth > pbufferWidth ) || (panelHeight > pbufferHeight) || - (panelWidth < (pbufferWidth / shrinkFactor)) || (panelHeight < (pbufferWidth / shrinkFactor))) { + (panelWidth < (pbufferWidth / shrinkFactor)) || (panelHeight < (pbufferHeight / shrinkFactor))) { if (DEBUG) { System.err.println("Resizing pbuffer from (" + pbufferWidth + ", " + pbufferHeight + ") " + " to fit (" + panelWidth + ", " + panelHeight + ")"); -- cgit v1.2.3