Commit 7e732e90 authored by hybrid's avatar hybrid

Fixed MSVC warnings

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1420 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 0f278fa5
...@@ -460,7 +460,7 @@ IMesh* CGeometryCreator::createCylinderMesh(f32 radius, f32 length, u32 tesselat ...@@ -460,7 +460,7 @@ IMesh* CGeometryCreator::createCylinderMesh(f32 radius, f32 length, u32 tesselat
{ {
SMeshBuffer* buffer = new SMeshBuffer(); 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 recTesselationHalf = recTesselation * 0.5f;
const f32 angleStep = (core::PI * 2.f ) * recTesselation; const f32 angleStep = (core::PI * 2.f ) * recTesselation;
const f32 angleStepHalf = angleStep*0.5f; const f32 angleStepHalf = angleStep*0.5f;
......
...@@ -693,7 +693,7 @@ bool CIrrDeviceWin32::isWindowMinimized() const ...@@ -693,7 +693,7 @@ bool CIrrDeviceWin32::isWindowMinimized() const
plc.length=sizeof(WINDOWPLACEMENT); plc.length=sizeof(WINDOWPLACEMENT);
bool ret=false; bool ret=false;
if (GetWindowPlacement(HWnd,&plc)) if (GetWindowPlacement(HWnd,&plc))
ret=(plc.showCmd & SW_SHOWMINIMIZED); ret=(plc.showCmd & SW_SHOWMINIMIZED)!=0;
_IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX; _IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX;
return ret; return ret;
} }
......
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