[vte/wip/drawing: 4/5] drawing: Always use fallback drawing for the supported characters



commit 801171e1671002b7d260ea755d6aff3052a49ab2
Author: Christian Persch <chpe gnome org>
Date:   Tue Aug 21 23:10:35 2012 +0200

    drawing: Always use fallback drawing for the supported characters
    
    In preparation for bug #435000.

 src/vte.c |   15 +--------------
 1 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index c9d59e9..9320ba8 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -9306,8 +9306,7 @@ vte_unichar_is_local_graphic(vteunistr c)
 static gboolean
 vte_terminal_unichar_is_local_graphic(VteTerminal *terminal, vteunistr c, gboolean bold)
 {
-	return vte_unichar_is_local_graphic (c) &&
-		!_vte_draw_has_char (terminal->pvt->draw, c, bold);
+	return vte_unichar_is_local_graphic (c);
 }
 
 static void
@@ -9373,12 +9372,6 @@ vte_terminal_draw_graphic(VteTerminal *terminal, vteunistr c,
 {
 	gboolean ret;
 	gint xcenter, xright, ycenter, ybottom, i;
-	struct _vte_draw_text_request request;
-
-	request.c = c;
-	request.x = x + terminal->pvt->inner_border.left;
-	request.y = y + terminal->pvt->inner_border.top;
-	request.columns = columns;
 
 	xright = x + column_width * columns;
 	ybottom = y + row_height;
@@ -9392,12 +9385,6 @@ vte_terminal_draw_graphic(VteTerminal *terminal, vteunistr c,
 					    column_width * columns, row_height);
 	}
 
-	if (_vte_draw_char(terminal->pvt->draw, &request,
-			   &terminal->pvt->palette[fore], VTE_DRAW_OPAQUE, bold)) {
-		/* We were able to draw with actual fonts. */
-		return TRUE;
-	}
-
 	ret = TRUE;
 
 	switch (c) {



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