some fixes for OSX
This commit is contained in:
@@ -39,7 +39,9 @@
|
||||
#ifndef BOT_H
|
||||
#define BOT_H
|
||||
|
||||
#ifndef RELEASE_BUILD
|
||||
#define RELEASE_BUILD // Set when you want to make a release build
|
||||
#endif
|
||||
|
||||
#include "bot_util.h"
|
||||
#include "bot_waypoint.h"
|
||||
|
||||
+1
-1
@@ -441,7 +441,7 @@ void setupscreen(int &usedcolorbits, int &useddepthbits, int &usedfsaa)
|
||||
int flags = SDL_RESIZABLE;
|
||||
#if defined(WIN32) || defined(__APPLE__)
|
||||
flags = 0;
|
||||
putenv("SDL_VIDEO_CENTERED=1"); //Center window
|
||||
putenv(newstring("SDL_VIDEO_CENTERED=1")); //Center window
|
||||
#endif
|
||||
if(fullscreen) flags |= SDL_FULLSCREEN;
|
||||
SDL_Rect **modes = SDL_ListModes(NULL, SDL_OPENGL|flags);
|
||||
|
||||
Reference in New Issue
Block a user