Commit 2fcc151d authored by hybrid's avatar hybrid

64bit fix.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1626 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 19ec5143
...@@ -935,14 +935,14 @@ void CIrrDeviceWin32::setResizeAble(bool resize) ...@@ -935,14 +935,14 @@ void CIrrDeviceWin32::setResizeAble(bool resize)
if (ExternalWindow || !getVideoDriver() || CreationParams.Fullscreen) if (ExternalWindow || !getVideoDriver() || CreationParams.Fullscreen)
return; return;
LONG style = WS_POPUP; LONG_PTR style = WS_POPUP;
if (!resize) if (!resize)
style = WS_SYSMENU | WS_BORDER | WS_CAPTION | WS_CLIPCHILDREN | WS_CLIPSIBLINGS; style = WS_SYSMENU | WS_BORDER | WS_CAPTION | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
else else
style = WS_THICKFRAME | WS_SYSMENU | WS_CAPTION | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_MINIMIZEBOX | WS_MAXIMIZEBOX; 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."); os::Printer::log("Could not change window style.");
RECT clientSize; RECT clientSize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment