[vte] Fix underline cursor height calculation



commit 49759e9608b1d69cdc26a44e0259d57297be995a
Author: Christian Persch <chpe gnome org>
Date:   Thu Apr 8 17:16:49 2010 +0200

    Fix underline cursor height calculation
    
    Use the cell width, not the whole cursor width when calculating the
    underline cursor height.

 src/vte.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index ecc5f83..2bcbc59 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -10609,7 +10609,7 @@ vte_terminal_paint_cursor(VteTerminal *terminal)
 		case VTE_CURSOR_SHAPE_UNDERLINE: {
                         int line_height;
 
-                        line_height = (int) (((float) cursor_width) * terminal->pvt->cursor_aspect_ratio + 0.5);
+                        line_height = (int) (((float) width) * terminal->pvt->cursor_aspect_ratio + 0.5);
                         line_height = CLAMP (line_height, VTE_LINE_WIDTH, height);
 
 			vte_terminal_fill_rectangle(terminal, &terminal->pvt->palette[back],



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