Commit 19ec5143 authored by hybrid's avatar hybrid

Enable minimize button for win32 windows.

Add some more error tests in d3d9 driver.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1625 dfc29bdd-3216-0410-991c-e03cc46cb475
parent e8ef136c
...@@ -537,7 +537,17 @@ bool CD3D9Driver::endScene() ...@@ -537,7 +537,17 @@ bool CD3D9Driver::endScene()
if (hr == D3DERR_DEVICELOST) if (hr == D3DERR_DEVICELOST)
{ {
DeviceLost = true; DeviceLost = true;
os::Printer::log("DIRECT3D9 device lost.", ELL_WARNING); os::Printer::log("Present failed", "DIRECT3D9 device lost.", ELL_WARNING);
}
#ifdef D3DERR_DEVICEREMOVED
else if (hr == D3DERR_DEVICEREMOVED)
{
os::Printer::log("Present failed", "Device removed.", ELL_WARNING);
}
#endif
else if (hr == D3DERR_INVALIDCALL)
{
os::Printer::log("Present failed", "Invalid Call", ELL_WARNING);
} }
else else
os::Printer::log("DIRECT3D9 present failed.", ELL_WARNING); os::Printer::log("DIRECT3D9 present failed.", ELL_WARNING);
......
...@@ -940,7 +940,7 @@ void CIrrDeviceWin32::setResizeAble(bool resize) ...@@ -940,7 +940,7 @@ void CIrrDeviceWin32::setResizeAble(bool resize)
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_MAXIMIZEBOX; style = WS_THICKFRAME | WS_SYSMENU | WS_CAPTION | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_MINIMIZEBOX | WS_MAXIMIZEBOX;
if (!SetWindowLong(HWnd, GWL_STYLE, style)) if (!SetWindowLong(HWnd, GWL_STYLE, style))
os::Printer::log("Could not change window style."); os::Printer::log("Could not change window style.");
......
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