mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Some early SDL2 Android fixes
This commit is contained in:
parent
2e0ca0f4b4
commit
1727dd5a72
|
@ -16,7 +16,6 @@
|
||||||
#include <GLES/glext.h>
|
#include <GLES/glext.h>
|
||||||
#include <GL/glu.h>
|
#include <GL/glu.h>
|
||||||
#define glOrtho glOrthof
|
#define glOrtho glOrthof
|
||||||
#include <SDL_android.h>
|
|
||||||
#else
|
#else
|
||||||
#include "SDL_opengl.h"
|
#include "SDL_opengl.h"
|
||||||
|
|
||||||
|
|
|
@ -232,7 +232,7 @@ int CInput::Update()
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
#if defined(__ANDROID__)
|
#if defined(__ANDROID__)
|
||||||
case SDL_VIDEORESIZE:
|
case SDL_WINDOWEVENT_RESIZED:
|
||||||
m_VideoRestartNeeded = 1;
|
m_VideoRestartNeeded = 1;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue