mailr12011 - /branches/bieri_gui/gui_bieri/about.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on December 28, 2010 - 22:51:
Author: bugman
Date: Tue Dec 28 22:51:52 2010
New Revision: 12011

URL: http://svn.gna.org/viewcvs/relax?rev=12011&view=rev
Log:
Work around for a GTK bug - the empty bitmap for the DC buffer must be square!

If not, text in the virtual area will not be drawn.


Modified:
    branches/bieri_gui/gui_bieri/about.py

Modified: branches/bieri_gui/gui_bieri/about.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/about.py?rev=12011&r1=12010&r2=12011&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/about.py (original)
+++ branches/bieri_gui/gui_bieri/about.py Tue Dec 28 22:51:52 2010
@@ -143,8 +143,8 @@
     def create_buffered_dc(self):
         """Build the buffered dc containing the window contents."""
 
-        # The buffer for buffered drawing.
-        self.buffer = wx.EmptyBitmap(self.virt_x, self.virt_y)
+        # The buffer for buffered drawing (work around for a GTK bug, the 
bitmap must be square!!!).
+        self.buffer = wx.EmptyBitmap(self.virt_y, self.virt_y)
 
         # Create the device context.
         self.dc = wx.BufferedDC(None, self.buffer)




Related Messages


Powered by MHonArc, Updated Tue Dec 28 23:00:02 2010