diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-18 15:50:19 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-18 15:50:19 +0200 |
commit | 1f011f915f1220ebe46ad151cad342d623a768ff (patch) | |
tree | 4593bf58c3956df46ad4423639b23b2331fe85a4 /src/ui | |
parent | b0158f4246125cd44d2eb212c1c1d29fdcc2b54c (diff) |
macOS: Fixed build
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/window.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index d67d3f5b..b8d8ae5f 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -1327,7 +1327,6 @@ iBool create_Window_(iWindow *d, iRect rect, uint32_t flags) { | |||
1327 | return iTrue; | 1327 | return iTrue; |
1328 | } | 1328 | } |
1329 | 1329 | ||
1330 | #if defined (iPlatformLinux) || defined (LAGRANGE_CUSTOM_FRAME) | ||
1331 | static SDL_Surface *loadImage_(const iBlock *data, int resized) { | 1330 | static SDL_Surface *loadImage_(const iBlock *data, int resized) { |
1332 | int w = 0, h = 0, num = 4; | 1331 | int w = 0, h = 0, num = 4; |
1333 | stbi_uc *pixels = stbi_load_from_memory( | 1332 | stbi_uc *pixels = stbi_load_from_memory( |
@@ -1342,7 +1341,6 @@ static SDL_Surface *loadImage_(const iBlock *data, int resized) { | |||
1342 | return SDL_CreateRGBSurfaceWithFormatFrom( | 1341 | return SDL_CreateRGBSurfaceWithFormatFrom( |
1343 | pixels, w, h, 8 * num, w * num, SDL_PIXELFORMAT_RGBA32); | 1342 | pixels, w, h, 8 * num, w * num, SDL_PIXELFORMAT_RGBA32); |
1344 | } | 1343 | } |
1345 | #endif | ||
1346 | 1344 | ||
1347 | void init_Window(iWindow *d, iRect rect) { | 1345 | void init_Window(iWindow *d, iRect rect) { |
1348 | theWindow_ = d; | 1346 | theWindow_ = d; |