diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-07 10:18:25 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-11 08:31:06 +0000 |
| commit | 389570b274df25c99ef9654036c2adb614db81fd (patch) | |
| tree | a28f89db76b818e407663dc37a2a68c2b593269d | |
| parent | render: offset all glyphs with {horizontal,vertical}-letter-offset (diff) | |
box-drawing: compensate for non-zero {horizontal,vertical}-letter-offsets
Box drawing characters should always cover the entire cell. No more,
no less.
| -rw-r--r-- | box-drawing.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/box-drawing.c b/box-drawing.c index 8640fc4c..0fa44cd3 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->conf->horizontal_letter_offset, + .y = term->conf->vertical_letter_offset + term->fonts[0]->ascent, .width = width, .height = height, .advance = { |
