summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-08-06 22:14:12 +0000
committerKenneth Russel <[email protected]>2005-08-06 22:14:12 +0000
commit10a63ef5c03e1d400f2c3265b40562fb30f89f78 (patch)
tree98f80a2fa8c060a8dc2c78ba47843e783f09a237 /src
parentb829a8848aa706eab1c3f1d040b91d20a09dc682 (diff)
Added repaint() to GLAutoDrawable interface and used it in gleem
package to break deadlocks when another thread than AWT event queue thread is involved in OpenGL rendering. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JSR-231@110 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src')
-rw-r--r--src/gleem/ExaminerViewer.java4
-rw-r--r--src/gleem/ManipManager.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gleem/ExaminerViewer.java b/src/gleem/ExaminerViewer.java
index 4c854e0..44e3f06 100644
--- a/src/gleem/ExaminerViewer.java
+++ b/src/gleem/ExaminerViewer.java
@@ -427,7 +427,7 @@ public class ExaminerViewer {
if (autoRedrawMode) {
// Force redraw
- window.display();
+ window.repaint();
}
}
}
@@ -487,7 +487,7 @@ public class ExaminerViewer {
if (autoRedrawMode) {
// Force redraw
- window.display();
+ window.repaint();
}
}
}
diff --git a/src/gleem/ManipManager.java b/src/gleem/ManipManager.java
index e29edfe..5e0ae05 100644
--- a/src/gleem/ManipManager.java
+++ b/src/gleem/ManipManager.java
@@ -79,7 +79,7 @@ public class ManipManager {
};
private WindowUpdateListener defaultWindowListener = new WindowUpdateListener() {
public void update(GLAutoDrawable window) {
- window.display();
+ window.repaint();
}
};
private WindowUpdateListener windowListener;