commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r9333 - gnuradio/trunk/gr-wxgui/src/python/plotter


From: jblum
Subject: [Commit-gnuradio] r9333 - gnuradio/trunk/gr-wxgui/src/python/plotter
Date: Tue, 19 Aug 2008 14:53:19 -0600 (MDT)

Author: jblum
Date: 2008-08-19 14:53:18 -0600 (Tue, 19 Aug 2008)
New Revision: 9333

Modified:
   gnuradio/trunk/gr-wxgui/src/python/plotter/plotter_base.py
Log:
plotter: require double buffering

Modified: gnuradio/trunk/gr-wxgui/src/python/plotter/plotter_base.py
===================================================================
--- gnuradio/trunk/gr-wxgui/src/python/plotter/plotter_base.py  2008-08-19 
19:54:47 UTC (rev 9332)
+++ gnuradio/trunk/gr-wxgui/src/python/plotter/plotter_base.py  2008-08-19 
20:53:18 UTC (rev 9333)
@@ -49,11 +49,14 @@
        def __init__(self, parent):
                """!
                Create a new plotter base.
-               Initialize GL and register events.
+               Initialize the GLCanvas with double buffering.
+               Initialize various plotter flags.
+               Bind the paint and size events.
                @param parent the parent widgit
                """
                self._semaphore = threading.Semaphore(1)
-               wx.glcanvas.GLCanvas.__init__(self, parent, -1)
+               attribList = (wx.glcanvas.WX_GL_DOUBLEBUFFER, 
wx.glcanvas.WX_GL_RGBA)
+               wx.glcanvas.GLCanvas.__init__(self, parent, 
attribList=attribList)
                self.changed(False)
                self._gl_init_flag = False
                self._resized_flag = True
@@ -86,7 +89,6 @@
                if self._resized_flag:
                        self.lock()
                        self.width, self.height = self.GetSize()
-                       glViewport(0, 0, self.width, self.height)
                        glMatrixMode(GL_PROJECTION)
                        glLoadIdentity()
                        glOrtho(0, self.width, self.height, 0, 1, 0)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]