add some curses support for coloring of map frame

This commit is contained in:
nhmall
2023-01-01 20:05:03 -05:00
parent 32a030c8c6
commit 095e4ffe31
3 changed files with 46 additions and 10 deletions

View File

@@ -812,7 +812,7 @@ curses_print_glyph(
winid wid,
coordxy x, coordxy y,
const glyph_info *glyphinfo,
const glyph_info *bkglyphinfo UNUSED)
const glyph_info *bkglyphinfo)
{
int glyph;
int ch;
@@ -861,12 +861,15 @@ curses_print_glyph(
if (SYMHANDLING(H_UTF8)
&& glyphinfo->gm.u
&& glyphinfo->gm.u->utf8str) {
curses_putch(wid, x, y, ch, glyphinfo->gm.u, color, attr);
curses_putch(wid, x, y, ch, glyphinfo->gm.u, color,
bkglyphinfo->framecolor, attr);
} else {
curses_putch(wid, x, y, ch, NULL, color, attr);
curses_putch(wid, x, y, ch, NULL, color,
bkglyphinfo->framecolor, attr);
}
#else
curses_putch(wid, x, y, ch, color, attr);
curses_putch(wid, x, y, ch, color,
bkglyphinfo->framecolor, attr);
#endif
}