forked from metin-server/m2dev-client-src
Full Unicode patch with RTL Support & BiDi logic.
This commit is well documented, so no need to tell you my life story. Full Unicode patch with RTL Support & BiDi logic. Removed the legacy codePage, normalised to UTF8 (65001). It also comes with: CTRL + A : select text (highlighted) CTRL + C : copy CTRL + V : paste CTRL + X : cut CTRL + Y : redo CTRL + Z : undo
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "StateManager.h"
|
||||
|
||||
#include <comdef.h>
|
||||
#include <utf8.h>
|
||||
|
||||
DWORD CScreen::ms_diffuseColor = 0xffffffff;
|
||||
DWORD CScreen::ms_clearColor = 0L;
|
||||
@@ -669,8 +670,11 @@ BOOL CScreen::RestoreDevice()
|
||||
if (FAILED(hrReset))
|
||||
{
|
||||
_com_error err(hrReset);
|
||||
LPCTSTR errMsg = err.ErrorMessage();
|
||||
TraceError(errMsg);
|
||||
LPCWSTR errMsgW = err.ErrorMessage(); // wide string
|
||||
|
||||
std::string errUtf8 = WideToUtf8(errMsgW);
|
||||
TraceError("%s", errUtf8.c_str());
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user