[vte/wip/egmont/bidi: 48/79] fix display after rtl double wide char
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/egmont/bidi: 48/79] fix display after rtl double wide char
- Date: Fri, 28 Sep 2018 08:16:04 +0000 (UTC)
commit 92407e2206d974378f7af3c90d8fda62f2274895
Author: Egmont Koblinger <egmont gmail com>
Date: Tue Aug 28 00:12:46 2018 +0200
fix display after rtl double wide char
doc/bidi.txt | 8 ++++++++
src/vte.cc | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/doc/bidi.txt b/doc/bidi.txt
index 51b3b6ff..eb8ff2a7 100644
--- a/doc/bidi.txt
+++ b/doc/bidi.txt
@@ -36,6 +36,10 @@ Boxes should all show up nicely.
[32moi7 incididunt ut labore et dolore magna aliqua.[m
[36mLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor שָ××œ×•Ö¹× incididunt ut
labore et dolore magna aliqua.[m
+[01mDouble wide[m
+[32ma<z n>x[m
+[36ma<z ×<ת[m
+
[01mBox[m
â”â”┓ â•”â•â•— ┌─┠â•â”€â•®
â”—â”â”› aâ•šâ•â•b ×┘─└ב ╰─╯
@@ -68,6 +72,10 @@ Boxes should all show up nicely.
[32m.incididunt ut labore et dolore magna aliqua oi7[m
[36m[3 SLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor שָ××œ×•Ö¹× incididunt
ut labore et dolore magna aliqua.[0 S[m
+[01mDouble wide[m
+ [32ma<z n>x[m
+[36m[3 S×<ת a<z[0 S[m
+
[01mBox[m[3 S
┓â”â” â•—â•â•” â”─┌ ╮─â•
â”›â”â”— aâ•šâ•â•b ×┘─└ב ╯─╰[0 S
diff --git a/src/vte.cc b/src/vte.cc
index e54cc293..c205d1e8 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -8879,7 +8879,7 @@ Terminal::draw_rows(VteScreen *screen_,
bg.blue = 0xC000 + (bg.blue - 0xC000) / 2;
_vte_draw_fill_rectangle (
m_draw,
- x + i * column_width,
+ i * column_width,
y + row_height / 8,
(j - i) * column_width,
row_height * 3 / 4,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]