Ticket #135: WIN32Window_Log.diff

File WIN32Window_Log.diff, 3.4 kB (added by cneumann, 2 years ago)

Patch, please test and apply

  • Source/WindowSystem/WIN32/OSGWIN32Window.cpp

    old new  
    100100void WIN32Window::dump(      UInt32    ,  
    101101                         const BitVector ) const 
    102102{ 
    103     SLOG << "Dump WIN32Window NI" << std::endl
     103    SLOG << "Dump WIN32Window NI" << endLog
    104104} 
    105105 
    106106/*-------------------------- your_category---------------------------------*/ 
     
    117117         
    118118        if(getHglrc() == NULL) 
    119119        { 
    120             std::cerr << "WIN32Window::init: failed: " 
    121                       << GetLastError()  
    122                       << std::endl;         
     120            SFATAL << "WIN32Window::init: failed: " 
     121                   << GetLastError() 
     122                   << endLog; 
    123123        } 
    124124    } 
    125125 
     
    136136 
    137137    if(!wglMakeCurrent(getHdc(), getHglrc() ) ) 
    138138    { 
    139         std::cerr << "WIN32Window::activate: failed: " 
    140                   << GetLastError()  
    141                   << std::endl;         
     139         SFATAL << "WIN32Window::activate: failed: " 
     140                << GetLastError() 
     141                << endLog; 
    142142    } 
    143143} 
    144144 
  • Source/WindowSystem/WIN32/testWindowMTWIN32.cpp

    old new  
    300300     
    301301    if ( file == NullFC ) 
    302302    { 
    303         std::cerr << "Couldn't load file, ignoring" << std::endl
     303        SWARNING << "Couldn't load file, ignoring" << endLog
    304304        file = makeTorus( .5, 2, 16, 16 ); 
    305305    } 
    306306     
     
    309309    Vec3f min,max; 
    310310    file->getVolume().getBounds( min, max ); 
    311311     
    312     std::cout << "Volume: from " << min << " to " << max << std::endl
     312    SINFO << "Volume: from " << min << " to " << max << endLog
    313313 
    314314    beginEditCP(dlight); 
    315315    dlight->addChild( file ); 
  • Source/WindowSystem/WIN32/testWindowWIN32.cpp

    old new  
    298298     
    299299    if ( file == NullFC ) 
    300300    { 
    301         std::cerr << "Couldn't load file, ignoring" << std::endl
     301        SWARNING << "Couldn't load file, ignoring" << endLog
    302302        file = makeTorus( .5, 2, 16, 16 ); 
    303303    } 
    304304     
     
    307307    Vec3f min,max; 
    308308    file->getVolume().getBounds( min, max ); 
    309309     
    310     std::cout << "Volume: from " << min << " to " << max << std::endl
     310    SINFO << "Volume: from " << min << " to " << max << endLog
    311311 
    312312    beginEditCP(dlight); 
    313313    dlight->addChild( file ); 
    314314    endEditCP(dlight); 
    315315 
    316     std::cerr << "Tree: " << std::endl
     316    SINFO << "Tree: " << endLog
    317317    root->dump(); 
    318318 
    319319    // Camera