[vte] widget: Fix box drawing characters in wide CJK mode
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Fix box drawing characters in wide CJK mode
- Date: Sat, 26 Jul 2014 21:03:15 +0000 (UTC)
commit 6774bfd96cf6ae71429ec06670b8f755cb4def55
Author: Egmont Koblinger <egmont gmail com>
Date: Sat Jul 26 23:02:03 2014 +0200
widget: Fix box drawing characters in wide CJK mode
src/vte.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 780b07e..fafeba0 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -8883,7 +8883,7 @@ vte_terminal_draw_graphic(VteTerminal *terminal, vteunistr c,
k_eights; \
})
- light_line_width = terminal->pvt->char_width / 5;
+ light_line_width = column_width / 5;
light_line_width = MAX (light_line_width, 1);
if (c >= 0x2550 && c <= 0x256c) {
@@ -9016,13 +9016,13 @@ vte_terminal_draw_graphic(VteTerminal *terminal, vteunistr c,
left_half - light_line_width / 2,
left_half - light_line_width / 2 + light_line_width,
left_half - heavy_line_width / 2 + heavy_line_width,
- terminal->pvt->char_width};
+ width};
int yboundaries[6] = { 0,
upper_half - heavy_line_width / 2,
upper_half - light_line_width / 2,
upper_half - light_line_width / 2 + light_line_width,
upper_half - heavy_line_width / 2 + heavy_line_width,
- terminal->pvt->char_height};
+ row_height};
int xi, yi;
cairo_set_line_width(cr, 0);
for (yi = 4; yi >= 0; yi--) {
@@ -9114,7 +9114,7 @@ vte_terminal_draw_graphic(VteTerminal *terminal, vteunistr c,
adjust = (line_width & 1) ? .5 : 0.;
cairo_set_line_width(cr, line_width);
- radius = (terminal->pvt->char_width + 2) / 3;
+ radius = (column_width + 2) / 3;
radius = MAX(radius, heavy_line_width);
if (v & 2) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]