aboutsummaryrefslogtreecommitdiff
path: root/box-drawing.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-11 08:31:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-11 08:31:29 +0000
commit83fd67409b5afb7c64a73d5bb084b0090ceedd56 (patch)
tree1b14d78f4dc9ee2db3a6c3511d85313531c6da6b /box-drawing.c
parentMerge branch 'fish-completions' (diff)
parentchangelog: move line-height entry from ‘changed’ to ‘added’ (diff)
Merge branch 'line-height-and-letter-spacing'
Closes #244
Diffstat (limited to 'box-drawing.c')
-rw-r--r--box-drawing.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/box-drawing.c b/box-drawing.c
index 8640fc4c..7ec7be09 100644
--- a/box-drawing.c
+++ b/box-drawing.c
@@ -6,6 +6,7 @@
#define LOG_MODULE "box-drawing"
#define LOG_ENABLE_DBG 0
#include "log.h"
+#include "config.h"
#include "macros.h"
#include "stride.h"
#include "terminal.h"
@@ -2068,8 +2069,8 @@ box_drawing(const struct terminal *term, wchar_t wc)
.wc = wc,
.cols = 1,
.pix = pix,
- .x = 0,
- .y = term->fonts[0]->ascent,
+ .x = -term->font_x_ofs,
+ .y = term->font_y_ofs + term->fonts[0]->ascent,
.width = width,
.height = height,
.advance = {