Changeset 8091
- Timestamp:
- Mar 18, 2011, 10:13:27 AM (14 years ago)
- Location:
- code/branches/mac_osx/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/mac_osx/src/Orxonox.cc
r8090 r8091 62 62 { 63 63 #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 64 72 std::string strCmdLine; 65 for (int i = 2; i < argc; ++i)73 for (int i = MAC_ARGC_HACK; i < argc; ++i) 66 74 strCmdLine = strCmdLine + argv[i] + ' '; 67 75 #endif -
code/branches/mac_osx/src/libraries/core/GraphicsManager.cc
r8090 r8091 315 315 Ogre::WindowEventUtilities::addWindowEventListener(this->renderWindow_, ogreWindowEventListener_.get()); 316 316 317 // HACK318 //#ifdef ORXONOX_PLATFORM_APPLE319 // //INFO: This will give our window focus, and not lock it to the terminal320 // ProcessSerialNumber psn = {0, kCurrentProcess};321 // TransformProcessType(&psn, kProcessTransformToForegroundApplication);322 // SetFrontProcess(&psn);323 //#endif324 // End of HACK325 326 317 // create a full screen default viewport 327 318 // Note: This may throw when adding a viewport with an existing z-order!
Note: See TracChangeset
for help on using the changeset viewer.