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:
@@ -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 */
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user