summaryrefslogtreecommitdiffstats
path: root/src/net
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-02-22 22:15:20 +0000
committerKenneth Russel <[email protected]>2005-02-22 22:15:20 +0000
commit31f983a480c2ef2f6879023130c3373b1a5dcb8f (patch)
tree62aa226606f12c3882bf357ae3a692c89be72168 /src/net
parent139827c37772823455909de7ee5c39eaa9e9552d (diff)
Fixed problem pointed out by user chrisDUPUIS on javagaming forums
where GLJPanel.display() wasn't synchronous but should have been git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@231 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net')
-rw-r--r--src/net/java/games/jogl/GLJPanel.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/java/games/jogl/GLJPanel.java b/src/net/java/games/jogl/GLJPanel.java
index 95e1161e1..d8c41e006 100644
--- a/src/net/java/games/jogl/GLJPanel.java
+++ b/src/net/java/games/jogl/GLJPanel.java
@@ -121,8 +121,8 @@ public final class GLJPanel extends JPanel implements GLDrawable {
public void display() {
if (EventQueue.isDispatchThread()) {
- // Can't block this thread
- repaint();
+ // Want display() to be synchronous, so call paintImmediately()
+ paintImmediately(0, 0, getWidth(), getHeight());
} else {
// Multithreaded redrawing of Swing components is not allowed,
// so do everything on the event dispatch thread