Use setWindowTextA in Windows device for WIN64 platform, posted by veegun

Forgot previous commit message, it should have been: ELL_ERROR log events are now created when shaders fail to compile or link, reported by Halan

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2278 dfc29bdd-3216-0410-991c-e03cc46cb475
master
bitplane 2009-03-14 18:36:13 +00:00
parent 108f3333ff
commit 32f124977a
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,7 @@
Changes in 1.6
- Use setWindowTextA in Windows device for WIN64 platform, posted by veegun
- ELL_ERROR log events are now created when shaders fail to compile or link, reported by Halan
- irrList now uses irrAllocator, fixed by Nox

View File

@ -571,14 +571,24 @@ void CIrrDeviceWin32::setWindowCaption(const wchar_t* text)
if (IsNonNTWindows)
{
const core::stringc s = text;
#ifdef WIN64
SetWindowTextA(HWnd, s.c_str());
#else
SendMessageTimeout(HWnd, WM_SETTEXT, 0,
reinterpret_cast<LPARAM>(s.c_str()),
SMTO_ABORTIFHUNG, 2000, &dwResult);
#endif
}
else
{
#ifdef WIN64
SetWindowTextW(HWnd, text);
#else
SendMessageTimeoutW(HWnd, WM_SETTEXT, 0,
reinterpret_cast<LPARAM>(text),
SMTO_ABORTIFHUNG, 2000, &dwResult);
#endif
}
}