From d98367f53b9a1268845d68cde1d02bd6ca35f213 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 20 Sep 2015 17:24:09 +0200 Subject: Window: Solve Unicode issues in GUI (e.g. Chinese text not always displayed correctly) by using Unicode API for dialogs and window message handling. --- src/Format/FormatCom.cpp | 4 ++-- src/Format/Tcformat.c | Bin 315583 -> 631176 bytes 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Format') diff --git a/src/Format/FormatCom.cpp b/src/Format/FormatCom.cpp index cc7d2082..aac5ae7e 100644 --- a/src/Format/FormatCom.cpp +++ b/src/Format/FormatCom.cpp @@ -154,13 +154,13 @@ extern "C" BOOL ComServerFormat () return FALSE; MSG msg; - while (int r = GetMessage (&msg, NULL, 0, 0)) + while (int r = GetMessageW (&msg, NULL, 0, 0)) { if (r == -1) return FALSE; TranslateMessage (&msg); - DispatchMessage (&msg); + DispatchMessageW (&msg); if (msg.message == WM_APP && ObjectCount < 1 diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c index 141900b0..9f31ae30 100644 Binary files a/src/Format/Tcformat.c and b/src/Format/Tcformat.c differ -- cgit v1.2.3