Преглед изворни кода

Added mintty/msvcrt fix to events test.

Camilla Berglund пре 12 година
родитељ
комит
1c4f7525d5
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      tests/events.c

+ 5 - 0
tests/events.c

@@ -417,8 +417,13 @@ int main(void)
     printf("Main loop starting\n");
 
     while (!glfwWindowShouldClose(window))
+    {
         glfwWaitEvents();
 
+        // Workaround for an issue with msvcrt and mintty
+        fflush(stdout);
+    }
+
     glfwTerminate();
     exit(EXIT_SUCCESS);
 }