diff options
author | Matt Ettus | 2009-09-04 10:29:00 -0700 |
---|---|---|
committer | Matt Ettus | 2009-09-04 10:29:00 -0700 |
commit | e103e18f8b8111cd07edc2bb0294aa58a426e371 (patch) | |
tree | 429d96819fc8b04c965eda3a0c2b93f2e94f9080 /gr-wxgui/src/python/plotter | |
parent | 5965a434d0923738d49334eb5f3d74a259e7b431 (diff) | |
parent | 20006003431d7260b04964eb684b1746ffb0a85f (diff) | |
download | gnuradio-e103e18f8b8111cd07edc2bb0294aa58a426e371.tar.gz gnuradio-e103e18f8b8111cd07edc2bb0294aa58a426e371.tar.bz2 gnuradio-e103e18f8b8111cd07edc2bb0294aa58a426e371.zip |
Merge branch 'master' into new_eth
Diffstat (limited to 'gr-wxgui/src/python/plotter')
-rw-r--r-- | gr-wxgui/src/python/plotter/waterfall_plotter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-wxgui/src/python/plotter/waterfall_plotter.py b/gr-wxgui/src/python/plotter/waterfall_plotter.py index 2e0669961..d32b0ca0a 100644 --- a/gr-wxgui/src/python/plotter/waterfall_plotter.py +++ b/gr-wxgui/src/python/plotter/waterfall_plotter.py @@ -209,7 +209,7 @@ class waterfall_plotter(grid_plotter_base): self._pointer = 0 if self._num_lines and self._fft_size: GL.glBindTexture(GL.GL_TEXTURE_2D, self._waterfall_texture) - data = numpy.zeros(self._num_lines*self._fft_size*4, numpy.uint8).tostring() + data = numpy.zeros(self._num_lines*ceil_log2(self._fft_size)*4, numpy.uint8).tostring() GL.glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_RGBA, ceil_log2(self._fft_size), self._num_lines, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, data) self._resize_texture_flag = False |