[vte] widget: No need to clip the cairo context



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

    widget: 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 53f5836..2331eaf 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -10306,7 +10306,6 @@ vte_terminal_draw(GtkWidget *widget,
        /* Designate the start of the drawing operation and clear the area. */
        _vte_draw_set_cairo(terminal->pvt->draw, cr);
 
-       _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 96d4110..23984fa 100644
--- a/src/vtedraw.c
+++ b/src/vtedraw.c
@@ -811,15 +811,6 @@ _vte_draw_set_background_solid(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 956215a..3f75e39 100644
--- a/src/vtedraw.h
+++ b/src/vtedraw.h
@@ -77,7 +77,6 @@ void _vte_draw_set_cairo(struct _vte_draw *draw,
 void _vte_draw_set_background_solid(struct _vte_draw *draw,
                                     const GdkRGBA *color);
 
-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]