shithub: cstory

Download patch

ref: 81edd4db52645520c62790fc64262335ccef28a2
parent: 41c3afd927f72ef86d7eb81c0e4746b2b490c62b
author: Gabriel Ravier <gabravier@gmail.com>
date: Thu Jul 2 10:59:55 EDT 2020

src: Restored SDL.h includes to conform to project style of including SDL2

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>

--- a/src/Backends/Audio/SDL2.cpp
+++ b/src/Backends/Audio/SDL2.cpp
@@ -5,9 +5,6 @@
 #include <string>
 
 #include "SDL.h"
-#include "SDL_audio.h"
-#include "SDL_error.h"
-#include "SDL_stdinc.h"
 
 #include "../Misc.h"
 
--- a/src/Backends/Controller/SDL2.cpp
+++ b/src/Backends/Controller/SDL2.cpp
@@ -4,9 +4,6 @@
 #include <stdlib.h>
 
 #include "SDL.h"
-#include "SDL_error.h"
-#include "SDL_joystick.h"
-#include "SDL_stdinc.h"
 
 #include "../Misc.h"
 #include "../Shared/SDL2.h"
--- a/src/Backends/Platform/SDL2.cpp
+++ b/src/Backends/Platform/SDL2.cpp
@@ -8,18 +8,6 @@
 #include <string>
 
 #include "SDL.h"
-#include "SDL_error.h"
-#include "SDL_events.h"
-#include "SDL_filesystem.h"
-#include "SDL_keyboard.h"
-#include "SDL_keycode.h"
-#include "SDL_messagebox.h"
-#include "SDL_mouse.h"
-#include "SDL_pixels.h"
-#include "SDL_stdinc.h"
-#include "SDL_surface.h"
-#include "SDL_timer.h"
-#include "SDL_video.h"
 
 #include "../Rendering.h"
 #include "../Shared/SDL2.h"
--- a/src/Backends/Rendering/SDLSurface.cpp
+++ b/src/Backends/Rendering/SDLSurface.cpp
@@ -5,12 +5,7 @@
 #include <string.h>
 #include <string>
 
-#include "SDL_error.h"
-#include "SDL_pixels.h"
-#include "SDL_rect.h"
-#include "SDL_stdinc.h"
-#include "SDL_surface.h"
-#include "SDL_video.h"
+#include "SDL.h"
 
 #include "../Misc.h"
 #include "../Shared/SDL2.h"
--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -5,15 +5,7 @@
 #include <string.h>
 #include <string>
 
-#include "SDL_blendmode.h"
-#include "SDL_error.h"
-#include "SDL_hints.h"
-#include "SDL_pixels.h"
-#include "SDL_rect.h"
-#include "SDL_render.h"
-#include "SDL_stdinc.h"
-#include "SDL_version.h"
-#include "SDL_video.h"
+#include "SDL.h"
 
 #define SPRITEBATCH_IMPLEMENTATION
 #include "../../../external/cute_spritebatch.h"
--- a/src/Backends/Rendering/Window/OpenGL3/SDL2.cpp
+++ b/src/Backends/Rendering/Window/OpenGL3/SDL2.cpp
@@ -6,8 +6,7 @@
 #ifndef USE_OPENGLES2
 #include <glad/glad.h>
 #endif
-#include "SDL_error.h"
-#include "SDL_video.h"
+#include "SDL.h"
 
 #include "../../../Misc.h"
 #include "../../../Shared/SDL2.h"
--- a/src/Backends/Rendering/Window/Software/SDL2.cpp
+++ b/src/Backends/Rendering/Window/Software/SDL2.cpp
@@ -3,10 +3,7 @@
 #include <stddef.h>
 #include <string>
 
-#include "SDL_error.h"
-#include "SDL_pixels.h"
-#include "SDL_surface.h"
-#include "SDL_video.h"
+#include "SDL.h"
 
 #include "../../../Misc.h"
 #include "../../../Shared/SDL2.h"