Mercurial > enso_core
changeset 38:1517f15208b6
Fixed various drawing bugs.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 24 Feb 2008 13:16:28 -0600 |
parents | 013ae5136ce8 |
children | 30686583595d |
files | enso/ui/messages/windows.py enso/ui/quasimode/linewindows.py |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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()
--- 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,