[vte/vte-0-36] drawing: Fix drawing of U+2594 to align with U+2587
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-36] drawing: Fix drawing of U+2594 to align with U+2587
- Date: Sat, 19 Oct 2013 21:03:23 +0000 (UTC)
commit 28eeba30fffcac7720b9e0d349887780dced2dc9
Author: Christian Persch <chpe gnome org>
Date: Thu Oct 17 22:54:51 2013 +0200
drawing: Fix drawing of U+2594 to align with U+2587
The upper ⅛ block was misaligned with the lower ⅞ block.
This also fixes part of https://bugzilla.gnome.org/show_bug.cgi?id=709584
src/vte.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index b8ed4aa..fb59715 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -10014,7 +10014,7 @@ vte_terminal_draw_graphic(VteTerminal *terminal, vteunistr c,
half /= 2;
if (v & 1) h += half;
- cairo_rectangle(cr, x, y + row_height - h, width, h);
+ cairo_rectangle(cr, x, ybottom - h, width, h);
cairo_fill (cr);
break;
}
@@ -10066,7 +10066,7 @@ vte_terminal_draw_graphic(VteTerminal *terminal, vteunistr c,
break;
case 0x2594: /* upper one eighth block */
- cairo_rectangle(cr, x, y, width, upper_half / 4);
+ cairo_rectangle(cr, x, y, width, (upper_half + 3)/ 4);
cairo_fill (cr);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]