Bugfix: IrrlichtDevice::isWindowMinimized no longer returns true when it's maximized on Windows.

SW_SHOWMINIMIZED isn't a bitflag as was probably assumed.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5827 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2019-07-03 13:53:13 +00:00
parent c89676d042
commit 1dd0b4338e
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
--------------------------
Changes in 1.9 (not yet released)
- Bugfix: IrrlichtDevice::isWindowMinimized no longer returns true when it's maximized on Windows.
- Ignore degenerated faces in obj file loader when they would generate triangles where 2 vertices use identical indices.
- Add CMatrix4::transformVec4 to transform vectors with 4 elements (thx @ devsh)
- Add ITexture::getOriginalColorFormat to access color format of images used to create a texture

View File

@ -1389,7 +1389,7 @@ bool CIrrDeviceWin32::isWindowMinimized() const
plc.length=sizeof(WINDOWPLACEMENT);
bool ret=false;
if (GetWindowPlacement(HWnd,&plc))
ret=(plc.showCmd & SW_SHOWMINIMIZED)!=0;
ret = plc.showCmd == SW_SHOWMINIMIZED;
return ret;
}