From 1727dd5a7227cffa2ca9f228750196347345810c Mon Sep 17 00:00:00 2001 From: def Date: Fri, 29 Apr 2016 22:56:13 +0200 Subject: [PATCH] Some early SDL2 Android fixes --- src/engine/client/backend_sdl.cpp | 1 - src/engine/client/input.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engine/client/backend_sdl.cpp b/src/engine/client/backend_sdl.cpp index 89723ae41..bb3277b5d 100644 --- a/src/engine/client/backend_sdl.cpp +++ b/src/engine/client/backend_sdl.cpp @@ -16,7 +16,6 @@ #include #include #define glOrtho glOrthof - #include #else #include "SDL_opengl.h" diff --git a/src/engine/client/input.cpp b/src/engine/client/input.cpp index e08ba00a8..d6b73fa83 100644 --- a/src/engine/client/input.cpp +++ b/src/engine/client/input.cpp @@ -232,7 +232,7 @@ int CInput::Update() return 1; #if defined(__ANDROID__) - case SDL_VIDEORESIZE: + case SDL_WINDOWEVENT_RESIZED: m_VideoRestartNeeded = 1; break; #endif