mirror of
https://github.com/glest/glest-source.git
synced 2025-09-28 00:19:00 +02:00
- added ability to check if compiler supports SSE and if not fallback to X87 for streflop.
- added ability for clients to specify gamma override value for drivers which support it
This commit is contained in:
@@ -1587,6 +1587,11 @@ bool changeVideoMode(int resW, int resH, int colorBits, int ) {
|
||||
|
||||
void restoreVideoMode(bool exitingApp) {
|
||||
//SDL_Quit();
|
||||
if(exitingApp == true && SDL_WasInit(SDL_INIT_VIDEO)) {
|
||||
SDL_ShowCursor(1);
|
||||
SDL_WM_GrabInput(SDL_GRAB_OFF);
|
||||
SDL_SetGamma(1, 1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
int getScreenW() {
|
||||
|
Reference in New Issue
Block a user