diff options
Diffstat (limited to 'Demo/sgi/video/VFile.py')
-rwxr-xr-x | Demo/sgi/video/VFile.py | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Demo/sgi/video/VFile.py b/Demo/sgi/video/VFile.py index 016115a..f04d93b 100755 --- a/Demo/sgi/video/VFile.py +++ b/Demo/sgi/video/VFile.py @@ -442,8 +442,7 @@ class Displayer(VideoParams): self.color0 = None self.fixcolor0 = 0 if self.format in ('rgb', 'jpeg', 'compress'): - gl.RGBmode() - gl.gconfig() + self.set_rgbmode() gl.RGBcolor(200, 200, 200) # XXX rather light grey gl.clear() return @@ -456,8 +455,7 @@ class Displayer(VideoParams): gl.clear() gl.pixmode(GL.PM_SIZE, 8) return - gl.cmode() - gl.gconfig() + self.set_cmode() self.skipchrom = 0 if self.offset == 0: self.mask = 0x7ff @@ -470,6 +468,18 @@ class Displayer(VideoParams): if not self.quiet: sys.stderr.write(' Done.\n') + # Set the window in RGB mode (may be overridden for Glx window) + + def set_rgbmode(self): + gl.RGBmode() + gl.gconfig() + + # Set the window in colormap mode (may be overridden for Glx window) + + def set_cmode(self): + gl.cmode() + gl.gconfig() + # Clear the window to a default color def clear(self): |