From 45856e3b5b61c0161183ad07f7f721213890c1ce Mon Sep 17 00:00:00 2001 From: nhmall Date: Wed, 6 Dec 2023 13:49:33 -0500 Subject: [PATCH] follow-up: bordercolor lacked have expected offset --- win/tty/wintty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win/tty/wintty.c b/win/tty/wintty.c index dbba04db8..960570ca3 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -3503,7 +3503,7 @@ tty_invent_box_glyph_init(struct WinDesc *cw) cell->content.ttychar = ' '; cell->text = 1; cell->refresh = 1; - cell->color = bordercolor; + cell->color = bordercolor + 1; /* cell color is offset */ } continue; } @@ -3514,7 +3514,7 @@ tty_invent_box_glyph_init(struct WinDesc *cw) cell->content.gi = (glyph_info *) alloc(sizeof (glyph_info)); *(cell->content.gi) = zerogi; cell->glyph = 1, cell->text = 0; - cell->color = bordercolor; + cell->color = bordercolor + 1; /* cell color is offset */ } /* to get here, cell->glyph is 1 and cell->content union has gi */