From: <md...@us...> - 2008-03-10 12:46:29
|
Revision: 4995 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4995&view=rev Author: mdboom Date: 2008-03-10 05:46:12 -0700 (Mon, 10 Mar 2008) Log Message: ----------- Fixing Qt/Qt4 blit shearing problem Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/backends/backend_qt4agg.py trunk/matplotlib/lib/matplotlib/backends/backend_qtagg.py Modified: trunk/matplotlib/lib/matplotlib/backends/backend_qt4agg.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backends/backend_qt4agg.py 2008-03-04 22:58:49 UTC (rev 4994) +++ trunk/matplotlib/lib/matplotlib/backends/backend_qt4agg.py 2008-03-10 12:46:12 UTC (rev 4995) @@ -109,8 +109,9 @@ # we are blitting here else: bbox = self.replot - l, b, w, h = bbox.bounds - t = b + h + l, b, r, t = bbox.extents + w = int(r) - int(l) + h = int(t) - int(b) reg = self.copy_from_bbox(bbox) stringBuffer = reg.to_string() qImage = QtGui.QImage(stringBuffer, w, h, QtGui.QImage.Format_ARGB32) Modified: trunk/matplotlib/lib/matplotlib/backends/backend_qtagg.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backends/backend_qtagg.py 2008-03-04 22:58:49 UTC (rev 4994) +++ trunk/matplotlib/lib/matplotlib/backends/backend_qtagg.py 2008-03-10 12:46:12 UTC (rev 4995) @@ -115,8 +115,9 @@ # we are blitting here else: bbox = self.replot - l, b, w, h = bbox.bounds - t = b + h + l, b, r, t = bbox.extents + w = int(r) - int(l) + h = int(t) - int(b) reg = self.copy_from_bbox(bbox) stringBuffer = reg.to_string() qImage = qt.QImage(stringBuffer, w, h, 32, None, 0, qt.QImage.IgnoreEndian) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |