Fixed MSVC warnings
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1420 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
0f278fa5ed
commit
7e732e9056
|
@ -460,7 +460,7 @@ IMesh* CGeometryCreator::createCylinderMesh(f32 radius, f32 length, u32 tesselat
|
|||
{
|
||||
SMeshBuffer* buffer = new SMeshBuffer();
|
||||
|
||||
const f32 recTesselation = core::reciprocal(tesselation);
|
||||
const f32 recTesselation = core::reciprocal((f32)tesselation);
|
||||
const f32 recTesselationHalf = recTesselation * 0.5f;
|
||||
const f32 angleStep = (core::PI * 2.f ) * recTesselation;
|
||||
const f32 angleStepHalf = angleStep*0.5f;
|
||||
|
|
|
@ -693,7 +693,7 @@ bool CIrrDeviceWin32::isWindowMinimized() const
|
|||
plc.length=sizeof(WINDOWPLACEMENT);
|
||||
bool ret=false;
|
||||
if (GetWindowPlacement(HWnd,&plc))
|
||||
ret=(plc.showCmd & SW_SHOWMINIMIZED);
|
||||
ret=(plc.showCmd & SW_SHOWMINIMIZED)!=0;
|
||||
_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX;
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue