summaryrefslogtreecommitdiffstats
path: root/src/net/java/joglutils/GLJFrame.java
diff options
context:
space:
mode:
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.