[vte/vte-0-36] drawing: Make underline cursor's height equal the i-beam's width
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-36] drawing: Make underline cursor's height equal the i-beam's width
- Date: Tue, 7 Jan 2014 19:06:17 +0000 (UTC)
commit f6cc6726745c3a4f79ba70152d0867dd3bfc537d
Author: Paul Bolle <pebolle tiscali nl>
Date: Tue Jan 7 20:02:11 2014 +0100
drawing: Make underline cursor's height equal the i-beam's width
https://bugzilla.gnome.org/show_bug.cgi?id=586950
src/vte.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index a8337cb..8111ae5 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -11147,7 +11147,9 @@ vte_terminal_paint_cursor(VteTerminal *terminal)
case VTE_CURSOR_SHAPE_UNDERLINE: {
int line_height;
- line_height = (int) (((float) width) * terminal->pvt->cursor_aspect_ratio + 0.5);
+ /* use height (not width) so underline and ibeam will
+ * be equally visible */
+ line_height = (int) (((float) height) * 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]