summaryrefslogtreecommitdiffstats
path: root/src/net/java/joglutils/GLJFrame.java
diff options
context:
space:
mode:
authoreteq <[email protected]>2006-12-21 20:13:34 +0000
committereteq <[email protected]>2006-12-21 20:13:34 +0000
commit63d9d453d16f23102b28ad586c520a6b8bf96337 (patch)
treeca53267549f890dd064ee7ee1e9ad3ab43ec023e /src/net/java/joglutils/GLJFrame.java
parent9f2fc9467a685aca37ed6ec6110408c137ceb925 (diff)
Initial implementation of javatext package. Normals not yet correct, and no texture implementation yet. Use FontDrawer main method for testing.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/joglutils/trunk@26 83d24430-9974-4f80-8418-2cc3294053b9
Diffstat (limited to 'src/net/java/joglutils/GLJFrame.java')
-rw-r--r--src/net/java/joglutils/GLJFrame.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/java/joglutils/GLJFrame.java b/src/net/java/joglutils/GLJFrame.java
index 270c323..2dd8e12 100644
--- a/src/net/java/joglutils/GLJFrame.java
+++ b/src/net/java/joglutils/GLJFrame.java
@@ -333,12 +333,14 @@ public class GLJFrame extends JFrame {
}
/**
- * Repaint the JFrame and render the GLCanvas if no animator is present. If animator is attached, only repaints the JFrame.
+ * Repaint the JFrame and render the GLCanvas if no animator is present. If animator is attached and running, only repaints the JFrame.
*/
public void repaint() {
super.repaint();
if (this.animator == null)
((GLCanvas)this.mainCanvas).display();
+ else if (!this.animator.isAnimating())
+ ((GLCanvas)this.mainCanvas).display();
}
/**
* Removes InputMethodListeners, KeyListeners,MouseListeners, MouseMotionListeners, and MouseWheelListeners from this and the GLCanvas.