[CONSOLE.CPL]: Paint the text samples using the correct character set (derived from the current code page).

This e.g. fixes display for the backslash symbol in CJK languages (that should appear as the Chinese "yuan" / Japanese "yen" currency symbol ¥, or the Korean "won" currency symbol ₩).
CORE-12451

svn path=/trunk/; revision=74366
This commit is contained in:
Hermès Bélusca-Maïto
2017-04-17 23:26:07 +00:00
parent 35fae98753
commit 417e293fac
2 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -131,7 +131,7 @@ PaintText(LPDRAWITEMSTRUCT drawItem,
FALSE,
FALSE,
FALSE,
OEM_CHARSET,
CodePageToCharSet(pConInfo->CodePage),
OUT_DEFAULT_PRECIS,
CLIP_DEFAULT_PRECIS,
DEFAULT_QUALITY,
@@ -233,11 +233,11 @@ LayoutProc(HWND hwndDlg,
case WM_NOTIFY:
{
LPNMUPDOWN lpnmud = (LPNMUPDOWN)lParam;
LPPSHNOTIFY lppsn = (LPPSHNOTIFY)lParam;
LPPSHNOTIFY lppsn = (LPPSHNOTIFY)lParam;
if (lppsn->hdr.code == UDN_DELTAPOS)
{
LPNMUPDOWN lpnmud = (LPNMUPDOWN)lParam;
DWORD wheight, wwidth;
DWORD sheight, swidth;
DWORD left, top;
+3 -2
View File
@@ -107,11 +107,12 @@ OptionsProc(HWND hwndDlg,
case WM_NOTIFY:
{
LPNMUPDOWN lpnmud = (LPNMUPDOWN)lParam;
LPPSHNOTIFY lppsn = (LPPSHNOTIFY)lParam;
LPPSHNOTIFY lppsn = (LPPSHNOTIFY)lParam;
if (lppsn->hdr.code == UDN_DELTAPOS)
{
LPNMUPDOWN lpnmud = (LPNMUPDOWN)lParam;
if (lppsn->hdr.idFrom == IDC_UPDOWN_BUFFER_SIZE)
{
lpnmud->iPos = min(max(lpnmud->iPos + lpnmud->iDelta, 1), 999);