[vte/wip/egmont/bidi: 39/97] fix cjk positioning
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/egmont/bidi: 39/97] fix cjk positioning
- Date: Mon, 6 May 2019 18:18:11 +0000 (UTC)
commit f7605d4522be52ce36f7e3040a06b6f3cf025742
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 87de606c..4818bb87 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -9026,7 +9026,7 @@ Terminal::draw_rows(VteScreen *screen_,
g_assert_cmpint (item_count, <, column_count);
items[item_count].c = c;
items[item_count].columns = j - col;
- items[item_count].x = col * column_width;
+ items[item_count].x = (col - (bidimap[i].vis_rtl ? j - col - 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]