Ver a proveniência

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

pull/5337/head
JohnnyCena123 há 3 meses
committed by GitHub
ascendente
cometimento
12ce106661
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: B5690EEEBB952194
1 ficheiros alterados com 2 adições e 2 eliminações
  1. +2
    -2
      src/platforms/rcore_desktop_glfw.c

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

@ -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

Carregando…
Cancelar
Guardar