[vte/wip/egmont/bidi: 32/64] fix cjk positioning
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/egmont/bidi: 32/64] fix cjk positioning
- Date: Wed, 19 Sep 2018 09:37:30 +0000 (UTC)
commit 9ac9711bfeab399faba521487eba9b1b65e5305b
Author: Egmont Koblinger <egmont gmail com>
Date: Fri Aug 24 11:38:27 2018 +0200
fix cjk positioning
src/vte.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 52478c5d..f74f53f9 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -8945,7 +8945,7 @@ Terminal::draw_rows(VteScreen *screen_,
g_assert_cmpint (item_count, <, m_column_count);
items[item_count].c = cell->c;
items[item_count].columns = cell->attr.columns();
- items[item_count].x = col * column_width;
+ items[item_count].x = (col - (bidimap[i].vis_rtl ? cell->attr.columns() - 1 : 0)) *
column_width;
items[item_count].y = y;
items[item_count].mirror = bidimap[i].vis_rtl;
items[item_count].box_mirror = !!(row_data->attr.bidi_flags & VTE_BIDI_BOX_MIRROR);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]