diff --git a/changes.txt b/changes.txt index 02822dcc..65e2afbf 100644 --- a/changes.txt +++ b/changes.txt @@ -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 diff --git a/source/Irrlicht/CIrrDeviceWin32.cpp b/source/Irrlicht/CIrrDeviceWin32.cpp index dd6d0931..f35734f6 100644 --- a/source/Irrlicht/CIrrDeviceWin32.cpp +++ b/source/Irrlicht/CIrrDeviceWin32.cpp @@ -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; }