Commit 311671a0292d54a1886620a839c720b297de8885

Ozkan Sezer 2021-10-12T23:50:02

fixed build after commit 6e356e20ad

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c
index 4212706..0a8fee2 100644
--- a/src/video/windows/SDL_windowsevents.c
+++ b/src/video/windows/SDL_windowsevents.c
@@ -979,8 +979,7 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
            being lost. This then causes a cascading failure where SDL_WINDOWEVENT_ENTER / SDL_WINDOWEVENT_LEAVE
            can stop firing permanently, due to the focus being in the wrong state and TrackMouseEvent never
            resubscribing. */
-        const SDL_bool isCapture = ((data->window->flags & SDL_WINDOW_MOUSE_CAPTURE) != 0);
-        if (!isCapture)
+        if (!(data->window->flags & SDL_WINDOW_MOUSE_CAPTURE))
             SDL_SetMouseFocus(NULL);
 
         returnCode = 0;