ref: 49f78879305b38a3c2c6f5a9a1ea32a804672811
parent: ff70664604b15d63851fe2ba69ba82025f4f8a8a
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Apr 1 12:27:55 EDT 2020
More cleanup
--- a/src/Backends/Platform/SDL2.cpp
+++ b/src/Backends/Platform/SDL2.cpp
@@ -12,7 +12,7 @@
#include "../../Profile.h"
#include "../../Resource.h"
-extern SDL_Window *window;
+SDL_Window *window;
BOOL bActive = TRUE;
--- a/src/Backends/Rendering/SDLSurface.cpp
+++ b/src/Backends/Rendering/SDLSurface.cpp
@@ -20,7 +20,8 @@
SDL_Surface *sdlsurface;
} Backend_Glyph;
-static SDL_Window *window;
+extern SDL_Window *window;
+
static SDL_Surface *window_sdlsurface;
static Backend_Surface framebuffer;
@@ -248,8 +249,11 @@
// No problem for us
}
-void Backend_HandleWindowResize(void)
+void Backend_HandleWindowResize(unsigned int width, unsigned int height)
{
+ (void)width;
+ (void)height;
+
// https://wiki.libsdl.org/SDL_GetWindowSurface
// We need to fetch a new surface pointer
window_sdlsurface = SDL_GetWindowSurface(window);
--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -11,7 +11,7 @@
#include "../../WindowsWrapper.h"
-#inclide "../Platform.h"
+#include "../Platform.h"
#include "../../Draw.h"
#include "../../Ending.h"
#include "../../MapName.h"
@@ -36,7 +36,8 @@
unsigned int height;
} Backend_Glyph;
-static SDL_Window *window;
+extern SDL_Window *window;
+
static SDL_Renderer *renderer;
static Backend_Surface framebuffer;
@@ -420,7 +421,10 @@
surface->lost = TRUE;
}
-void Backend_HandleWindowResize(void)
+void Backend_HandleWindowResize(unsigned int width, unsigned int height)
{
+ (void)width;
+ (void)height;
+
// No problem for us
}
--- a/src/Backends/Rendering/Software.cpp
+++ b/src/Backends/Rendering/Software.cpp
@@ -28,7 +28,8 @@
unsigned int height;
} Backend_Glyph;
-static SDL_Window *window;
+extern SDL_Window *window;
+
static SDL_Surface *window_sdlsurface;
static SDL_Surface *framebuffer_sdlsurface;
static Backend_Surface framebuffer;
@@ -369,8 +370,11 @@
// No problem for us
}
-void Backend_HandleWindowResize(void)
+void Backend_HandleWindowResize(unsigned int width, unsigned int height)
{
+ (void)width;
+ (void)height;
+
// https://wiki.libsdl.org/SDL_GetWindowSurface
// We need to fetch a new surface pointer
window_sdlsurface = SDL_GetWindowSurface(window);
--- a/src/Backends/Window/SDL2-OpenGL3.cpp
+++ b/src/Backends/Window/SDL2-OpenGL3.cpp
@@ -14,7 +14,7 @@
#include "../Platform.h"
#include "../../Resource.h"
-SDL_Window *window;
+extern SDL_Window *window;
static SDL_GLContext context;
--
⑨