From 3cb1ed94bd528d594b20818dc5da43bd6b35d388 Mon Sep 17 00:00:00 2001 From: Ash Date: Sun, 21 Oct 2018 19:45:53 +1100 Subject: [PATCH] render/wiiu: Start fixing up missing headers --- src/render/wiiu/SDL_rdraw_wiiu.c | 13 ++++++++++++- src/render/wiiu/SDL_render_wiiu.h | 1 + src/render/wiiu/SDL_rtexture_wiiu.c | 3 +++ src/video/wiiu/SDL_wiiuvideo.h | 1 + src/video/wiiu/wiiu_shaders.h | 5 ++++- 5 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/render/wiiu/SDL_rdraw_wiiu.c b/src/render/wiiu/SDL_rdraw_wiiu.c index d31d07805..0673c9c0f 100644 --- a/src/render/wiiu/SDL_rdraw_wiiu.c +++ b/src/render/wiiu/SDL_rdraw_wiiu.c @@ -29,6 +29,17 @@ #include "SDL_hints.h" #include "SDL_render_wiiu.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include #include #include @@ -239,7 +250,7 @@ void WIIU_SDL_RenderPresent(SDL_Renderer * renderer) while (data->listfree) { void *ptr = data->listfree; data->listfree = data->listfree->next; - SDL_free(ptr); + SDL_free(ptr); } } diff --git a/src/render/wiiu/SDL_render_wiiu.h b/src/render/wiiu/SDL_render_wiiu.h index 657237770..1e62d4cc2 100644 --- a/src/render/wiiu/SDL_render_wiiu.h +++ b/src/render/wiiu/SDL_render_wiiu.h @@ -26,6 +26,7 @@ #define SDL_render_wiiu_h #include "../SDL_sysrender.h" +#include typedef struct { diff --git a/src/render/wiiu/SDL_rtexture_wiiu.c b/src/render/wiiu/SDL_rtexture_wiiu.c index eef6b5256..f60aeef0a 100644 --- a/src/render/wiiu/SDL_rtexture_wiiu.c +++ b/src/render/wiiu/SDL_rtexture_wiiu.c @@ -28,6 +28,9 @@ #include "SDL_hints.h" #include "SDL_render_wiiu.h" +#include +#include + #include #include #include diff --git a/src/video/wiiu/SDL_wiiuvideo.h b/src/video/wiiu/SDL_wiiuvideo.h index e0c7fe318..bf5e1a9f7 100644 --- a/src/video/wiiu/SDL_wiiuvideo.h +++ b/src/video/wiiu/SDL_wiiuvideo.h @@ -26,6 +26,7 @@ #define SDL_wiiuvideo_h #include +#include "SDL_surface.h" #define WIIU_WINDOW_DATA "_SDL_WiiUData" typedef struct diff --git a/src/video/wiiu/wiiu_shaders.h b/src/video/wiiu/wiiu_shaders.h index 66529e952..bd878b8c9 100644 --- a/src/video/wiiu/wiiu_shaders.h +++ b/src/video/wiiu/wiiu_shaders.h @@ -25,6 +25,9 @@ #ifndef _WIIU_shaders_h #define _WIIU_shaders_h +#include +#include + extern unsigned char wiiuTextureShaderData[]; extern unsigned char wiiuColorShaderData[]; @@ -77,4 +80,4 @@ static inline void wiiuSetColorShader() { GX2SetPixelShader(wiiuColorShader.pixelShader); } -#endif //_WIIU_shaders_h \ No newline at end of file +#endif //_WIIU_shaders_h