diff options
Diffstat (limited to 'src/i_videohr.c')
-rw-r--r-- | src/i_videohr.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/i_videohr.c b/src/i_videohr.c index 94fc5309..5a491def 100644 --- a/src/i_videohr.c +++ b/src/i_videohr.c @@ -220,3 +220,26 @@ void I_BlackPaletteHR(void) I_SetPaletteHR(blackpal); } +// Check if the user has hit the escape key to abort startup. +boolean I_CheckAbortHR(void) +{ + SDL_Event ev; + boolean result = false; + + // Not initialized? + if (hr_surface == NULL) + { + return false; + } + + while (SDL_PollEvent(&ev)) + { + if (ev.type == SDL_KEYDOWN && ev.key.keysym.sym == SDLK_ESCAPE) + { + result = true; + } + } + + return result; +} + |