[vte/wip/drawing: 2/7] widget: Remove extraneous vte_draw_[start|end] calls



commit 8c80c36713e2305c2decc56452bd9cf5af7662d2
Author: Christian Persch <chpe gnome org>
Date:   Tue Aug 21 22:55:31 2012 +0200

    widget: Remove extraneous vte_draw_[start|end] calls
    
    Drawing only happens on ::draw which calls start/end already.

 src/vte.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 83b0541..4bb3113 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -9331,13 +9331,11 @@ vte_terminal_fill_rectangle(VteTerminal *terminal,
 			    gint width,
 			    gint height)
 {
-	_vte_draw_start(terminal->pvt->draw);
 	_vte_draw_fill_rectangle(terminal->pvt->draw,
 				 x + terminal->pvt->inner_border.left,
                                  y + terminal->pvt->inner_border.top,
 				 width, height,
 				 color, VTE_DRAW_OPAQUE);
-	_vte_draw_end(terminal->pvt->draw);
 }
 
 static void
@@ -9361,13 +9359,11 @@ vte_terminal_draw_rectangle(VteTerminal *terminal,
 			    gint width,
 			    gint height)
 {
-	_vte_draw_start(terminal->pvt->draw);
 	_vte_draw_draw_rectangle(terminal->pvt->draw,
 				 x + terminal->pvt->inner_border.left,
                                  y + terminal->pvt->inner_border.top,
 				 width, height,
 				 color, VTE_DRAW_OPAQUE);
-	_vte_draw_end(terminal->pvt->draw);
 }
 
 static void



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