Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8091


Ignore:
Timestamp:
Mar 18, 2011, 10:13:27 AM (13 years ago)
Author:
youngk
Message:

Dang! Forgot something very serious. Now my changes won't be breaking anymore :)

Location:
code/branches/mac_osx/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/mac_osx/src/Orxonox.cc

    r8090 r8091  
    6262    {
    6363#ifndef ORXONOX_USE_WINMAIN
     64
     65// On Apples, the kernel supplies a second argument, which we have to circumvent
     66#ifdef ORXONOX_PLATFORM_APPLE
     67# define MAC_ARGC_HACK 2
     68#else
     69# define MAC_ARGC_HACK 1
     70#endif
     71   
    6472        std::string strCmdLine;
    65         for (int i = 2; i < argc; ++i)
     73        for (int i = MAC_ARGC_HACK; i < argc; ++i)
    6674            strCmdLine = strCmdLine + argv[i] + ' ';
    6775#endif
  • code/branches/mac_osx/src/libraries/core/GraphicsManager.cc

    r8090 r8091  
    315315        Ogre::WindowEventUtilities::addWindowEventListener(this->renderWindow_, ogreWindowEventListener_.get());
    316316
    317 // HACK
    318 //#ifdef ORXONOX_PLATFORM_APPLE
    319 //        //INFO: This will give our window focus, and not lock it to the terminal
    320 //        ProcessSerialNumber psn = {0, kCurrentProcess};
    321 //        TransformProcessType(&psn, kProcessTransformToForegroundApplication);
    322 //        SetFrontProcess(&psn);
    323 //#endif
    324 // End of HACK
    325 
    326317        // create a full screen default viewport
    327318        // Note: This may throw when adding a viewport with an existing z-order!
Note: See TracChangeset for help on using the changeset viewer.