From b92affaf352ae2d50ca4a2e70bcbe5efd0926ac0 Mon Sep 17 00:00:00 2001 From: Christian Parpart Date: Fri, 3 Jun 2022 14:22:08 +0200 Subject: [PATCH] =?UTF-8?q?[terminal=5Frenderer]=20Fixes=20rendering=20of?= =?UTF-8?q?=20U+E0B2=20=EE=82=B2=20in=20pixel-perfect=20box=20drawing=20mo?= =?UTF-8?q?de=20(#707).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Changelog.md | 1 + src/terminal_renderer/BoxDrawingRenderer.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 533860dbcd..4eec1be93a 100644 --- a/Changelog.md +++ b/Changelog.md @@ -12,6 +12,7 @@ - Fixes VT sequence for setting indexed color from palette. - Fixes some config false positives error messages. - Fixes command line arguments parser handling of `--` for switching to verbatim mode (#670). +- Fixes rendering of U+E0B2  in pixel-perfect box drawing mode (#707). - Changes `XTSMGRAPHICS` to match implementation of xterm *exactly* when querying sixel image limits, to be capped at terminal viewport dimensions (#656). - Win32: Attaches to parent console if present, so typing `contour help` in a terminal actually shows something. - Implements UTF-8 encoded mouse transport (`CSI ? 1005 h`) diff --git a/src/terminal_renderer/BoxDrawingRenderer.cpp b/src/terminal_renderer/BoxDrawingRenderer.cpp index 6c0fe52603..17c35718e1 100644 --- a/src/terminal_renderer/BoxDrawingRenderer.cpp +++ b/src/terminal_renderer/BoxDrawingRenderer.cpp @@ -602,7 +602,10 @@ namespace detail template auto getTriangleProps(ImageSize size) { - auto const c = Point { unbox(size.width) / DivisorX, unbox(size.height) / 2 }; + auto const c = + Point { Direction == Dir::Left ? unbox(size.width) / DivisorX + : unbox(size.width) - unbox(size.width) / DivisorX, + unbox(size.height) / 2 }; auto const w = unbox(size.width) - 1; auto const h = unbox(size.height) - 1;