Explorar el Código

[rcore][glfw] fix `IsWindowFocused()` inverted logic (#5333)

pull/5337/head
JohnnyCena123 hace 3 meses
cometido por GitHub
padre
commit
12ce106661
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: B5690EEEBB952194
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      src/platforms/rcore_desktop_glfw.c

+ 2
- 2
src/platforms/rcore_desktop_glfw.c Ver fichero

@ -1863,8 +1863,8 @@ static void WindowMaximizeCallback(GLFWwindow *window, int maximized)
// GLFW3 WindowFocus Callback, runs when window get/lose focus
static void WindowFocusCallback(GLFWwindow *window, int focused)
{
if (focused) FLAG_SET(CORE.Window.flags, FLAG_WINDOW_UNFOCUSED); // The window was focused
else FLAG_CLEAR(CORE.Window.flags, FLAG_WINDOW_UNFOCUSED); // The window lost focus
if (focused) FLAG_CLEAR(CORE.Window.flags, FLAG_WINDOW_UNFOCUSED); // The window was focused
else FLAG_SET(CORE.Window.flags, FLAG_WINDOW_UNFOCUSED); // The window lost focus
}
// GLFW3 Window Drop Callback, runs when drop files into window

Cargando…
Cancelar
Guardar