64bit fix.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1626 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2008-10-09 22:42:47 +00:00
parent 19ec5143af
commit 2fcc151d7e
1 changed files with 2 additions and 2 deletions

View File

@ -935,14 +935,14 @@ void CIrrDeviceWin32::setResizeAble(bool resize)
if (ExternalWindow || !getVideoDriver() || CreationParams.Fullscreen)
return;
LONG style = WS_POPUP;
LONG_PTR style = WS_POPUP;
if (!resize)
style = WS_SYSMENU | WS_BORDER | WS_CAPTION | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
else
style = WS_THICKFRAME | WS_SYSMENU | WS_CAPTION | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_MINIMIZEBOX | WS_MAXIMIZEBOX;
if (!SetWindowLong(HWnd, GWL_STYLE, style))
if (!SetWindowLongPtr(HWnd, GWL_STYLE, style))
os::Printer::log("Could not change window style.");
RECT clientSize;