Changeset 10415 for OpenSceneGraph/trunk/src/osg/DisplaySettings.cpp
- Timestamp:
- 06/25/09 18:07:49 (4 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osg/DisplaySettings.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osg/DisplaySettings.cpp
r9973 r10415 14 14 #include <osg/ArgumentParser> 15 15 #include <osg/ApplicationUsage> 16 #include <osg/Math> 16 17 #include <osg/Notify> 17 18 #include <osg/ref_ptr> … … 269 270 if( (ptr = getenv("OSG_EYE_SEPARATION")) != 0) 270 271 { 271 _eyeSeparation = atof(ptr);272 _eyeSeparation = osg::asciiToFloat(ptr); 272 273 } 273 274 274 275 if( (ptr = getenv("OSG_SCREEN_WIDTH")) != 0) 275 276 { 276 _screenWidth = atof(ptr);277 _screenWidth = osg::asciiToFloat(ptr); 277 278 } 278 279 279 280 if( (ptr = getenv("OSG_SCREEN_HEIGHT")) != 0) 280 281 { 281 _screenHeight = atof(ptr);282 _screenHeight = osg::asciiToFloat(ptr); 282 283 } 283 284 284 285 if( (ptr = getenv("OSG_SCREEN_DISTANCE")) != 0) 285 286 { 286 _screenDistance = atof(ptr);287 _screenDistance = osg::asciiToFloat(ptr); 287 288 } 288 289
