Add hardcoded alt-enter fullscreen toggle
This commit is contained in:
@@ -62,6 +62,7 @@ static int UseOpenGL = 0;
|
|||||||
static const int BitDepth = 16;
|
static const int BitDepth = 16;
|
||||||
DWORD FirstVid = 1;
|
DWORD FirstVid = 1;
|
||||||
|
|
||||||
|
extern void SwitchFullScreen (void);
|
||||||
extern BYTE GUIWFVID[];
|
extern BYTE GUIWFVID[];
|
||||||
extern unsigned char cvidmode;
|
extern unsigned char cvidmode;
|
||||||
|
|
||||||
@@ -147,6 +148,11 @@ int Main_Proc(void)
|
|||||||
IsActivated = event.active.gain;
|
IsActivated = event.active.gain;
|
||||||
break;
|
break;
|
||||||
case SDL_KEYDOWN:
|
case SDL_KEYDOWN:
|
||||||
|
if ((event.key.keysym.sym == SDLK_RETURN) &&
|
||||||
|
(event.key.keysym.mod & KMOD_ALT)) {
|
||||||
|
SwitchFullScreen();
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (event.key.keysym.sym == SDLK_LSHIFT ||
|
if (event.key.keysym.sym == SDLK_LSHIFT ||
|
||||||
event.key.keysym.sym == SDLK_RSHIFT)
|
event.key.keysym.sym == SDLK_RSHIFT)
|
||||||
shiftptr = 1;
|
shiftptr = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user