diff --git a/src/Backends/Platform/SDL2.cpp b/src/Backends/Platform/SDL2.cpp index aa60526e..2e55511c 100644 --- 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; diff --git a/src/Backends/Rendering/SDLSurface.cpp b/src/Backends/Rendering/SDLSurface.cpp index 4ffda7c2..30431bc2 100644 --- a/src/Backends/Rendering/SDLSurface.cpp +++ b/src/Backends/Rendering/SDLSurface.cpp @@ -20,7 +20,8 @@ typedef struct Backend_Glyph 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 @@ void Backend_HandleRenderTargetLoss(void) // 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); diff --git a/src/Backends/Rendering/SDLTexture.cpp b/src/Backends/Rendering/SDLTexture.cpp index b1f56e75..dd61b456 100644 --- 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 @@ typedef struct Backend_Glyph 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 @@ void Backend_HandleRenderTargetLoss(void) surface->lost = TRUE; } -void Backend_HandleWindowResize(void) +void Backend_HandleWindowResize(unsigned int width, unsigned int height) { + (void)width; + (void)height; + // No problem for us } diff --git a/src/Backends/Rendering/Software.cpp b/src/Backends/Rendering/Software.cpp index e78c677d..fd9bf02a 100644 --- a/src/Backends/Rendering/Software.cpp +++ b/src/Backends/Rendering/Software.cpp @@ -28,7 +28,8 @@ typedef struct Backend_Glyph 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 @@ void Backend_HandleRenderTargetLoss(void) // 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); diff --git a/src/Backends/Window/SDL2-OpenGL3.cpp b/src/Backends/Window/SDL2-OpenGL3.cpp index b3377a98..b870bf24 100644 --- 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;