# HG changeset patch # User Atul Varma # Date 1203880588 21600 # Node ID 1517f15208b6d8667a583436870a729ceb2ff0f2 # Parent 013ae5136ce85401d544d5befdef5b45ca55f9d1 Fixed various drawing bugs. diff -r 013ae5136ce8 -r 1517f15208b6 enso/ui/messages/windows.py --- a/enso/ui/messages/windows.py Sun Feb 24 13:08:45 2008 -0600 +++ b/enso/ui/messages/windows.py Sun Feb 24 13:16:28 2008 -0600 @@ -180,7 +180,7 @@ # The cairo paint() method does the whole (clipped) cairo # surface. cr = self._context - cr.set_source_rgba( 0, 0, 0 ) + cr.set_source_rgba( 0, 0, 0, 0 ) cr.paint() diff -r 013ae5136ce8 -r 1517f15208b6 enso/ui/quasimode/linewindows.py --- a/enso/ui/quasimode/linewindows.py Sun Feb 24 13:08:45 2008 -0600 +++ b/enso/ui/quasimode/linewindows.py Sun Feb 24 13:16:28 2008 -0600 @@ -103,7 +103,9 @@ # Clear the areas where the corners of the rounded rectangle will be. - cr.set_source_rgb( 0, 0, 0 ) + cr.save() + cr.set_source_rgba( 0, 0, 0, 0 ) + cr.set_operator( cairo.OPERATOR_SOURCE ) cr.rectangle( width-CORNER_RADIUS, height-CORNER_RADIUS, CORNER_RADIUS, @@ -126,6 +128,7 @@ rect = ( 0, 0, width, height ), softenedCorners = corners ) cr.fill_preserve() + cr.restore() # Next, draw the text. document.draw( layout.L_MARGIN,