ref: f5480444641f82be6b6c4234e757fffb2afe5dbd
parent: e15091b207674e2c629b10f3b62ad94069ca8511
author: Clownacy <Clownacy@users.noreply.github.com>
date: Fri Apr 3 14:05:41 EDT 2020
Cleanup
--- a/src/Backends/Rendering/SDLSurface.cpp
+++ b/src/Backends/Rendering/SDLSurface.cpp
@@ -9,6 +9,7 @@
#include "../../WindowsWrapper.h"
#include "../Platform.h"
+#include "SDL2.h"
typedef struct Backend_Surface
{
@@ -19,8 +20,6 @@
{
SDL_Surface *sdlsurface;
} Backend_Glyph;
-
-extern SDL_Window *window;
static SDL_Surface *window_sdlsurface;
--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -13,6 +13,7 @@
#include "../../WindowsWrapper.h"
#include "../Platform.h"
+#include "SDL2.h"
#include "../../Draw.h"
#include "../../Ending.h"
#include "../../MapName.h"
@@ -36,8 +37,6 @@
unsigned int width;
unsigned int height;
} Backend_Glyph;
-
-extern SDL_Window *window;
static SDL_Renderer *renderer;
--- a/src/Backends/Rendering/Software.cpp
+++ b/src/Backends/Rendering/Software.cpp
@@ -9,6 +9,7 @@
#include "../../WindowsWrapper.h"
#include "../Platform.h"
+#include "SDL2.h"
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
@@ -27,8 +28,6 @@
unsigned int width;
unsigned int height;
} Backend_Glyph;
-
-extern SDL_Window *window;
static SDL_Surface *window_sdlsurface;
static SDL_Surface *framebuffer_sdlsurface;