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

@@ -2651,6 +2651,8 @@ int which_set;
break; break;
case 1: symset[which_set].rogue = 1; case 1: symset[which_set].rogue = 1;
break; break;
case 2: symset[which_set].unicode = 1;
break;
} }
break; /* while loop */ break; /* while loop */
} }

View File

@@ -611,7 +611,8 @@ int in_sym;
cursor.Y = ttyDisplay->cury; cursor.Y = ttyDisplay->cury;
WriteConsoleOutputAttribute(hConOut,&attr,1,cursor,&acount); WriteConsoleOutputAttribute(hConOut,&attr,1,cursor,&acount);
#ifdef UNICODE_DRAWING #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); WriteConsoleOutputCharacterW(hConOut,(LPCWSTR)&in_sym,1,cursor,&ccount);
else else
#endif #endif