Ver código fonte

Wait for events when window is minimized...

...instead of keep polling
pull/218/head
Ray 8 anos atrás
pai
commit
d8edcafe5a
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      src/core.c

+ 1
- 1
src/core.c Ver arquivo

@ -494,7 +494,7 @@ bool WindowShouldClose(void)
{
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB)
// While window minimized, stop loop execution
while (windowMinimized) glfwPollEvents();
while (windowMinimized) glfwWaitEvents();
return (glfwWindowShouldClose(window));
#endif

Carregando…
Cancelar
Salvar