This commit is contained in:
Clownacy 2020-04-03 18:05:41 +01:00
parent e15091b207
commit f548044464
3 changed files with 3 additions and 6 deletions

View file

@ -9,6 +9,7 @@
#include "../../WindowsWrapper.h" #include "../../WindowsWrapper.h"
#include "../Platform.h" #include "../Platform.h"
#include "SDL2.h"
typedef struct Backend_Surface typedef struct Backend_Surface
{ {
@ -20,8 +21,6 @@ typedef struct Backend_Glyph
SDL_Surface *sdlsurface; SDL_Surface *sdlsurface;
} Backend_Glyph; } Backend_Glyph;
extern SDL_Window *window;
static SDL_Surface *window_sdlsurface; static SDL_Surface *window_sdlsurface;
static Backend_Surface framebuffer; static Backend_Surface framebuffer;

View file

@ -13,6 +13,7 @@
#include "../../WindowsWrapper.h" #include "../../WindowsWrapper.h"
#include "../Platform.h" #include "../Platform.h"
#include "SDL2.h"
#include "../../Draw.h" #include "../../Draw.h"
#include "../../Ending.h" #include "../../Ending.h"
#include "../../MapName.h" #include "../../MapName.h"
@ -37,8 +38,6 @@ typedef struct Backend_Glyph
unsigned int height; unsigned int height;
} Backend_Glyph; } Backend_Glyph;
extern SDL_Window *window;
static SDL_Renderer *renderer; static SDL_Renderer *renderer;
static Backend_Surface framebuffer; static Backend_Surface framebuffer;

View file

@ -9,6 +9,7 @@
#include "../../WindowsWrapper.h" #include "../../WindowsWrapper.h"
#include "../Platform.h" #include "../Platform.h"
#include "SDL2.h"
#define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b))
@ -28,8 +29,6 @@ typedef struct Backend_Glyph
unsigned int height; unsigned int height;
} Backend_Glyph; } Backend_Glyph;
extern SDL_Window *window;
static SDL_Surface *window_sdlsurface; static SDL_Surface *window_sdlsurface;
static SDL_Surface *framebuffer_sdlsurface; static SDL_Surface *framebuffer_sdlsurface;
static Backend_Surface framebuffer; static Backend_Surface framebuffer;