summaryrefslogtreecommitdiffstats
path: root/src/classes/javax/media/opengl
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2007-10-02 10:57:27 +0000
committerKenneth Russel <[email protected]>2007-10-02 10:57:27 +0000
commit5f078a7c0fc6118aeaa94bf4879038cf39ade0b3 (patch)
tree1eb81815d38a4c8ed28bc0be25b2384644d39a9e /src/classes/javax/media/opengl
parentc655022405bce377e5662b5185505ac0dedc4de1 (diff)
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
Diffstat (limited to 'src/classes/javax/media/opengl')
-rw-r--r--src/classes/javax/media/opengl/GLJPanel.java2
1 files changed, 1 insertions, 1 deletions
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 + ")");