From a0375f58da4ad42ae81c4c0ceab9807c1d8418b9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 26 Nov 2003 13:21:40 +0000 Subject: [PATCH] Added a f after 2.0 definitions in atan2 to get round stupid MS errors. --- examples/slideshow3D/slideshow3D.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/slideshow3D/slideshow3D.cpp b/examples/slideshow3D/slideshow3D.cpp index a67e0686a..d51b941a8 100644 --- a/examples/slideshow3D/slideshow3D.cpp +++ b/examples/slideshow3D/slideshow3D.cpp @@ -204,8 +204,8 @@ int main( int argc, char **argv ) // create the windows and run the threads. viewer.realize(); - double vfov = osg::RadiansToDegrees(atan2(height/2.0,distance)*2.0); - double hfov = osg::RadiansToDegrees(atan2(width/2.0,distance)*2.0); + double vfov = osg::RadiansToDegrees(atan2(height/2.0f,distance)*2.0); + double hfov = osg::RadiansToDegrees(atan2(width/2.0f,distance)*2.0); viewer.setLensPerspective( hfov, vfov, 0.1, 1000.0);