mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 11:42:31 +01:00
- try to force focus on main window at startup
This commit is contained in:
parent
1966710628
commit
847f97a048
@ -502,6 +502,9 @@ Intro::Intro(Program *program):
|
||||
}
|
||||
}
|
||||
|
||||
if(GlobalStaticFlags::getIsNonGraphicalModeEnabled() == false) {
|
||||
renderer.swapBuffers();
|
||||
}
|
||||
//test = NULL;
|
||||
//Shared::Graphics::md5::initMD5OpenGL(data_path + "data/core/shaders/");
|
||||
//md5Test = Shared::Graphics::md5::getMD5ObjectFromLoaderScript("/home/softcoder/Code/megaglest/trunk/mk/linux/mydata/test/mv1/mv1.loader");
|
||||
|
@ -213,7 +213,6 @@ void PlatformContextGl::init(int colorBits, int depthBits, int stencilBits,
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s %d]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__);
|
||||
SDL_WM_GrabInput(SDL_GRAB_OFF);
|
||||
|
||||
@ -249,6 +248,9 @@ void PlatformContextGl::init(int colorBits, int depthBits, int stencilBits,
|
||||
printf("WARNING, SDL_SetGamma failed using value %f [%s]\n", gammaValue,SDL_GetError());
|
||||
}
|
||||
}
|
||||
|
||||
SDL_WM_GrabInput(SDL_GRAB_ON);
|
||||
SDL_WM_GrabInput(SDL_GRAB_OFF);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user