more unicode follow up

Set the unicode restriction bit when loading a symset when appropriate,
and a win32 console refinement.
This commit is contained in:
nethack.allison
2006-10-18 04:10:43 +00:00
parent 600697fadf
commit aed3d37e17
2 changed files with 4 additions and 1 deletions

View File

@@ -611,7 +611,8 @@ int in_sym;
cursor.Y = ttyDisplay->cury;
WriteConsoleOutputAttribute(hConOut,&attr,1,cursor,&acount);
#ifdef UNICODE_DRAWING
if (symset[currentgraphics].name && iflags.unicodedisp)
if (symset[currentgraphics].name &&
symset[currentgraphics].unicode && iflags.unicodedisp)
WriteConsoleOutputCharacterW(hConOut,(LPCWSTR)&in_sym,1,cursor,&ccount);
else
#endif