Ver código fonte

Enable FLAG_WINDOW_ALWAYS_RUN by default on PLATFORM_DESKTOP_GLFW

pull/4598/head
asdqwe 6 dias atrás
pai
commit
757bcbfc2e
1 arquivos alterados com 3 adições e 0 exclusões
  1. +3
    -0
      src/platforms/rcore_desktop_glfw.c

+ 3
- 0
src/platforms/rcore_desktop_glfw.c Ver arquivo

@ -1341,6 +1341,9 @@ int InitPlatform(void)
if ((CORE.Window.flags & FLAG_WINDOW_TOPMOST) > 0) glfwWindowHint(GLFW_FLOATING, GLFW_TRUE);
else glfwWindowHint(GLFW_FLOATING, GLFW_FALSE);
// Enable FLAG_WINDOW_ALWAYS_RUN by default
if ((CORE.Window.flags & FLAG_WINDOW_ALWAYS_RUN) == 0) CORE.Window.flags |= FLAG_WINDOW_ALWAYS_RUN;
// NOTE: Some GLFW flags are not supported on HTML5
if ((CORE.Window.flags & FLAG_WINDOW_TRANSPARENT) > 0) glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, GLFW_TRUE); // Transparent framebuffer
else glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, GLFW_FALSE); // Opaque framebuffer

Carregando…
Cancelar
Salvar