Fixed MSVC warnings

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1420 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2008-07-18 14:45:17 +00:00
parent 0f278fa5ed
commit 7e732e9056
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;
}