[vte/vte-next: 57/114] No need to clip the cairo context
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-next: 57/114] No need to clip the cairo context
- Date: Mon, 30 May 2011 17:11:32 +0000 (UTC)
commit 45e0435b9f85e2d61fd33ea06b315671a77e9ebc
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 3eab714..83cc108 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -10262,7 +10262,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]