- in headless mode avoid init of sdl's video surface so that we stay in console window (no graphics window shown)

This commit is contained in:
Mark Vejvoda
2011-09-27 07:01:08 +00:00
parent c68aa74fcf
commit 9caff9dac3
7 changed files with 169 additions and 132 deletions

View File

@@ -111,6 +111,8 @@ private:
static void setKeystate(SDL_keysym state) { keystate = state; }
static bool masterserverMode;
protected:
int w, h;
static bool isActive;
@@ -130,6 +132,9 @@ public:
Window();
virtual ~Window();
static void setMasterserverMode(bool value) { Window::masterserverMode = value;}
static bool getMasterserverMode() { return Window::masterserverMode;}
static bool getTryVSynch() { return tryVSynch; }
static void setTryVSynch(bool value) { tryVSynch = value; }