From 3a8e5fc6b4aadd645365f85ea89c169baeff0992 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 7 May 2004 19:58:56 +0000 Subject: [PATCH] From Yefei Hi, replaced windows specific function with sprintf to afford better cross platform portability. --- src/osgPlugins/flt/flt2osg.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/osgPlugins/flt/flt2osg.cpp b/src/osgPlugins/flt/flt2osg.cpp index 2c502dc16..065f2622d 100644 --- a/src/osgPlugins/flt/flt2osg.cpp +++ b/src/osgPlugins/flt/flt2osg.cpp @@ -1229,18 +1229,16 @@ osg::Group* ConvertFromFLT::visitObject(osg::Group& osgParent, ObjectRecord* rec visitPrimaryNode(*object, (PrimNodeRecord*)rec); _wObjTransparency = wPrevTransparency; -#if 0 -// submission from Yefei Hi, which alas doesn't compile due to missing -// _ultoa(,,) function. Will comment back in once flag is tracked down. if ( pSObject->dwFlags & 0xFC000000) // some of the 6 defined flag bits are set { std::string desc("flt object flags: 0x"); char cflags[33]; - desc = desc + _ultoa( pSObject->dwFlags, cflags, 16 ); + sprintf( cflags, "%X", pSObject->dwFlags ); + desc = desc + cflags; + object->getDescriptions().push_back( desc ); } -#endif return object; }