[vte/vte-next] No need to clip the cairo context



commit 93d0fa09b1cd51e6d22fb855957056f2b4fcb004
Author: Christian Persch <chpe gnome org>
Date:   Tue May 3 17:10:19 2011 +0200

    No need to clip the cairo context
    
    The context passed to ::draw is already clipped.

 src/vte.c     |    1 -
 src/vtedraw.c |    9 ---------
 src/vtedraw.h |    1 -
 3 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 111b7b9..c16c343 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -10266,7 +10266,6 @@ vte_terminal_draw(GtkWidget *widget,
                 }
         }
 
-        _vte_draw_clip(terminal->pvt->draw, region);
         _vte_draw_clear (terminal->pvt->draw, 0, 0,
                          allocated_width, allocated_height);
 
diff --git a/src/vtedraw.c b/src/vtedraw.c
index 310148b..7c00dd0 100644
--- a/src/vtedraw.c
+++ b/src/vtedraw.c
@@ -801,15 +801,6 @@ _vte_draw_set_background_scroll (struct _vte_draw *draw,
 }
 
 void
-_vte_draw_clip (struct _vte_draw *draw, cairo_region_t *region)
-{
-	_vte_debug_print (VTE_DEBUG_DRAW, "draw_clip\n");
-        g_assert(draw->cr);
-        gdk_cairo_region(draw->cr, region);
-	cairo_clip (draw->cr);
-}
-
-void
 _vte_draw_clear (struct _vte_draw *draw, gint x, gint y, gint width, gint height)
 {
 	g_return_if_fail (draw->bg_pattern != NULL);
diff --git a/src/vtedraw.h b/src/vtedraw.h
index a50aff1..8391459 100644
--- a/src/vtedraw.h
+++ b/src/vtedraw.h
@@ -69,7 +69,6 @@ void _vte_draw_set_background_pattern (struct _vte_draw *draw,
 void _vte_draw_set_background_scroll(struct _vte_draw *draw,
 				     gint x, gint y);
 
-void _vte_draw_clip(struct _vte_draw *draw, cairo_region_t *region);
 void _vte_draw_clear(struct _vte_draw *draw,
 		     gint x, gint y, gint width, gint height);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]