mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
Allow toggling fullscreen via pressing Alt + Enter
git-svn-id: https://svn.eduke32.com/eduke32@74 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
4276901071
commit
86689e4397
2 changed files with 16 additions and 0 deletions
|
@ -8440,6 +8440,14 @@ void app_main(int argc,char **argv)
|
||||||
|
|
||||||
MAIN_LOOP_RESTART:
|
MAIN_LOOP_RESTART:
|
||||||
|
|
||||||
|
if(ALT_IS_PRESSED && KB_KeyPressed(sc_Enter))
|
||||||
|
{
|
||||||
|
if(setgamemode(!ScreenMode,ScreenWidth,ScreenHeight,ScreenBPP) < 0)
|
||||||
|
setgamemode(ScreenMode,ScreenWidth,ScreenHeight,ScreenBPP);
|
||||||
|
else ScreenMode = !ScreenMode;
|
||||||
|
KB_ClearKeyDown(sc_Enter);
|
||||||
|
}
|
||||||
|
|
||||||
if(ud.warp_on == 0)
|
if(ud.warp_on == 0)
|
||||||
Logo();
|
Logo();
|
||||||
else if(ud.warp_on == 1)
|
else if(ud.warp_on == 1)
|
||||||
|
|
|
@ -517,6 +517,14 @@ void menus(void)
|
||||||
long l,m;
|
long l,m;
|
||||||
char *p = NULL;
|
char *p = NULL;
|
||||||
|
|
||||||
|
if(ALT_IS_PRESSED && KB_KeyPressed(sc_Enter))
|
||||||
|
{
|
||||||
|
if(setgamemode(!ScreenMode,ScreenWidth,ScreenHeight,ScreenBPP) < 0)
|
||||||
|
setgamemode(ScreenMode,ScreenWidth,ScreenHeight,ScreenBPP);
|
||||||
|
else ScreenMode = !ScreenMode;
|
||||||
|
KB_ClearKeyDown(sc_Enter);
|
||||||
|
}
|
||||||
|
|
||||||
getpackets();
|
getpackets();
|
||||||
|
|
||||||
if(ControllerType == 1 && CONTROL_MousePresent)
|
if(ControllerType == 1 && CONTROL_MousePresent)
|
||||||
|
|
Loading…
Reference in a new issue