Fix build with SDL 1.2

This commit is contained in:
Yamagi Burmeister 2017-04-22 10:24:12 +02:00
parent eb2a11f0b2
commit c0b768278f
2 changed files with 3 additions and 6 deletions

View file

@ -295,7 +295,7 @@ GLimp_InitGraphics(qboolean fullscreen, int *pwidth, int *pheight)
{ {
if (!CreateSDLWindow(flags, width, height)) if (!CreateSDLWindow(flags, width, height))
{ {
if (flags & SDL_WINDOW_OPENGL) if (flags & SDL_OPENGL)
{ {
if (gl_msaa_samples->value) if (gl_msaa_samples->value)
{ {

View file

@ -26,6 +26,7 @@
*/ */
#include "header/client.h" #include "header/client.h"
#include "../backends/generic/header/input.h"
cvar_t *cin_force43; cvar_t *cin_force43;
@ -576,11 +577,7 @@ SCR_PlayCinematic(char *arg)
byte *palette; byte *palette;
char name[MAX_OSPATH], *dot; char name[MAX_OSPATH], *dot;
/* Make sure that all keys are marked up. Under In_FlushQueue();
some circumstances cinematics are started with
at least one key marked down, causing them to
abort right after the first frame... */
Key_MarkAllUp();
/* make sure background music is not playing */ /* make sure background music is not playing */
#ifdef CDA #ifdef CDA