Do glyphs in right way
This commit is contained in:
parent
ffb8d58edf
commit
7e11b3eb70
@ -116,10 +116,11 @@ char tl[256] = {
|
||||
};
|
||||
|
||||
WCHAR oem2unicode[256] = {
|
||||
0x0000, 0x263a, 0x263b, 0x2665, 0x2666, 0x2663, 0x2660, 0x2219,
|
||||
0x25d8, 0x25cb, 0x25d9, 0x2642, 0x2640, 0x266a, 0x266b, 0x263c,
|
||||
0x25ba, 0x25c4, 0x2195, 0x203c, 0x00b6, 0x00a7, 0x25a0, 0x21a8,
|
||||
0x2191, 0x2193, 0x2192, 0x2190, 0x221f, 0x2194, 0x25b2, 0x25bc
|
||||
// MB_USEGLYPHCHARS should do the same :-)
|
||||
// 0x0000, 0x263a, 0x263b, 0x2665, 0x2666, 0x2663, 0x2660, 0x2219,
|
||||
// 0x25d8, 0x25cb, 0x25d9, 0x2642, 0x2640, 0x266a, 0x266b, 0x263c,
|
||||
// 0x25ba, 0x25c4, 0x2195, 0x203c, 0x00b6, 0x00a7, 0x25a0, 0x21a8,
|
||||
// 0x2191, 0x2193, 0x2192, 0x2190, 0x221f, 0x2194, 0x25b2, 0x25bc
|
||||
};
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
@ -150,10 +151,8 @@ int g_init_os(int flags) {
|
||||
for(i = 0; i < 256; i++) {
|
||||
tu[i] = (toupper)(i);
|
||||
tl[i] = (tolower)(i);
|
||||
if(i >= ' ') {
|
||||
CHAR chr = (CHAR)i;
|
||||
MultiByteToWideChar(CP_OEMCP, 0, &chr, 1, oem2unicode+i, 1);
|
||||
}
|
||||
CHAR chr = (CHAR)i;
|
||||
MultiByteToWideChar(CP_OEMCP, MB_USEGLYPHCHARS, &chr, 1, oem2unicode+i, 1);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user