summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-09-07 15:09:31 (GMT)
committerGuido van Rossum <guido@python.org>1992-09-07 15:09:31 (GMT)
commit00ffea36155d253ad5ccb26f2d14e1545626a723 (patch)
tree2c9aaff27fa04efb11a8c8a781cdb175c688b792
parent87b74730c35be4c36793404e86cef02f32c774d2 (diff)
downloadcpython-00ffea36155d253ad5ccb26f2d14e1545626a723.zip
cpython-00ffea36155d253ad5ccb26f2d14e1545626a723.tar.gz
cpython-00ffea36155d253ad5ccb26f2d14e1545626a723.tar.bz2
Use vin/vout.clear() instead of gl.clear()
-rwxr-xr-xDemo/sgi/video/Viewer.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Demo/sgi/video/Viewer.py b/Demo/sgi/video/Viewer.py
index 6203562..2a7b2eb 100755
--- a/Demo/sgi/video/Viewer.py
+++ b/Demo/sgi/video/Viewer.py
@@ -71,7 +71,7 @@ class InputViewer:
self.fillq()
gl.winset(self.wid)
if self.qindex >= len(self.queue):
- gl.clear()
+ self.vin.clear()
return
dt, d, cd = self.queue[self.qindex]
self.vin.showframe(d, cd)
@@ -80,6 +80,7 @@ class InputViewer:
if wid == self.wid >= 0:
gl.winset(self.wid)
gl.reshapeviewport()
+ self.vin.clear()
self.show()
def get(self):
@@ -175,7 +176,7 @@ class OutputViewer:
self.vout.initcolormap()
gl.winset(self.wid)
if not self.queue:
- gl.clear()
+ self.vout.clear()
return
dt, d, cd = self.queue[-1]
self.vout.showframe(d, cd)
@@ -184,6 +185,7 @@ class OutputViewer:
if wid == self.wid >= 0:
gl.winset(self.wid)
gl.reshapeviewport()
+ self.vout.clear()
self.show()
def backup(self):