mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
suppress video mode switch messages when alt-tabbing out of fullscreen
git-svn-id: https://svn.eduke32.com/eduke32@799 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
fbc4633fef
commit
9c81fa155c
1 changed files with 6 additions and 2 deletions
|
@ -115,6 +115,7 @@ char modechange=1, repaintneeded=0;
|
||||||
char offscreenrendering=0;
|
char offscreenrendering=0;
|
||||||
int glcolourdepth=32;
|
int glcolourdepth=32;
|
||||||
char videomodereset = 0;
|
char videomodereset = 0;
|
||||||
|
char silentvideomodeswitch = 0;
|
||||||
|
|
||||||
// input and events
|
// input and events
|
||||||
char inputdevices=0;
|
char inputdevices=0;
|
||||||
|
@ -2094,6 +2095,7 @@ int setvideomode(int x, int y, int c, int fs)
|
||||||
gammabrightness = 0;
|
gammabrightness = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!silentvideomodeswitch)
|
||||||
initprintf("Setting video mode %dx%d (%d-bit %s)\n",
|
initprintf("Setting video mode %dx%d (%d-bit %s)\n",
|
||||||
x,y,c, ((fs&1) ? "fullscreen" : "windowed"));
|
x,y,c, ((fs&1) ? "fullscreen" : "windowed"));
|
||||||
|
|
||||||
|
@ -4008,6 +4010,7 @@ static LRESULT CALLBACK WndProcCallback(HWND hWnd, UINT uMsg, WPARAM wParam, LPA
|
||||||
regrabmouse = 1;
|
regrabmouse = 1;
|
||||||
}
|
}
|
||||||
realfs = fullscreen;
|
realfs = fullscreen;
|
||||||
|
silentvideomodeswitch = 1;
|
||||||
setgamemode(!fullscreen,xdim,ydim,bpp);
|
setgamemode(!fullscreen,xdim,ydim,bpp);
|
||||||
ShowWindow(hWindow, SW_MINIMIZE);
|
ShowWindow(hWindow, SW_MINIMIZE);
|
||||||
}
|
}
|
||||||
|
@ -4022,6 +4025,7 @@ static LRESULT CALLBACK WndProcCallback(HWND hWnd, UINT uMsg, WPARAM wParam, LPA
|
||||||
SetForegroundWindow(hWindow);
|
SetForegroundWindow(hWindow);
|
||||||
SetFocus(hWindow);
|
SetFocus(hWindow);
|
||||||
setgamemode(realfs,xdim,ydim,bpp);
|
setgamemode(realfs,xdim,ydim,bpp);
|
||||||
|
silentvideomodeswitch = 0;
|
||||||
realfs = 0;
|
realfs = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue