pull request 229/#H9299 - DECgraphics for curses
Fixes #230 Incorporate github pull request #230, support for DECgraphics-style line drawing in the curses interface. I've rewritten the curses_convert_glyph() part so that it doesn't require C99 and doesn't reinitialize its pair of arrays for every character written to the map. The DECgraphics conversion is now a straight char for char one, DEC line drawing code to ACS, without regard to what map symbol is intended or what 'cursesgraphics' uses for that symbol.
This commit is contained in:
@@ -658,9 +658,11 @@ curses_print_glyph(winid wid, XCHAR_P x, XCHAR_P y, int glyph,
|
||||
if ((special & MG_DETECT) && iflags.use_inverse) {
|
||||
attr = A_REVERSE;
|
||||
}
|
||||
if (!symset[PRIMARY].name || !strcmpi(symset[PRIMARY].name, "curses")) {
|
||||
ch = curses_convert_glyph(ch, glyph);
|
||||
}
|
||||
if (SYMHANDLING(H_DEC))
|
||||
ch = curses_convert_glyph(TRUE, ch, glyph);
|
||||
else if (!symset[PRIMARY].name || !strcmpi(symset[PRIMARY].name, "curses"))
|
||||
ch = curses_convert_glyph(FALSE, ch, glyph);
|
||||
|
||||
if (wid == NHW_MAP) {
|
||||
/* hilite stairs not in 3.6, yet
|
||||
if ((special & MG_STAIRS) && iflags.hilite_hidden_stairs) {
|
||||
|
||||
Reference in New Issue
Block a user