diff --git a/src/Backends/Platform/GLFW3.cpp b/src/Backends/Platform/GLFW3.cpp index 894f6b7e..ae3be315 100644 --- a/src/Backends/Platform/GLFW3.cpp +++ b/src/Backends/Platform/GLFW3.cpp @@ -2,6 +2,7 @@ #include #include +#include #include #include @@ -20,7 +21,7 @@ BOOL bActive = TRUE; -extern GLFWwindow *window; +GLFWwindow *window; static void KeyCallback(GLFWwindow *window, int key, int scancode, int action, int mods) { @@ -286,10 +287,11 @@ BOOL PlatformBackend_SystemTask(void) return FALSE; } + glfwPollEvents(); + while (!bActive) glfwWaitEvents(); - glfwPollEvents(); /* while (SDL_PollEvent(NULL) || !bActive) { @@ -318,7 +320,7 @@ BOOL PlatformBackend_SystemTask(void) void PlatformBackend_ShowMessageBox(const char *title, const char *message) { - //SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, title, message, NULL); + printf("ShowMessageBox - '%s' - '%s'\n", title, message); } unsigned long PlatformBackend_GetTicks(void) diff --git a/src/Backends/Window/GLFW3-OpenGL3.cpp b/src/Backends/Window/GLFW3-OpenGL3.cpp index 89ae1996..7df4dc0a 100644 --- a/src/Backends/Window/GLFW3-OpenGL3.cpp +++ b/src/Backends/Window/GLFW3-OpenGL3.cpp @@ -14,8 +14,8 @@ #include "../Platform.h" -// Horrible hacks -GLFWwindow *window; +// Horrible hack +extern GLFWwindow *window; BOOL WindowBackend_OpenGL_CreateWindow(const char *window_title, int *screen_width, int *screen_height, BOOL fullscreen) {