Permalink
Browse files

Fix window issue on macOS 10.14

Window will be blank until an event occurs; temporary fix until resolved in SDL
  • Loading branch information...
blacktm committed Sep 26, 2018
1 parent 8236a88 commit b323bac3f031d1876b1ca77b86125d1cd9f1bf87
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/window.c
View
@@ -91,6 +91,13 @@ int S2D_Show(S2D_Window *window) {
S2D_GL_Init(window);
// SDL 2.0.8 and macOS 10.14 fix /////////////////////////////////////////////
#if MACOS
SDL_PumpEvents();
SDL_SetWindowSize(window->sdl, window->width, window->height);
#endif
// Set Main Loop Data ////////////////////////////////////////////////////////
const Uint8 *key_state;

0 comments on commit b323bac

Please sign in to comment.