mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-12 23:04:40 +02:00
Re-add SDL_assert() with non boolean ptr syntax (#8531)
This commit is contained in:
@@ -777,7 +777,7 @@ void SDL_SetKeyboardFocus(SDL_Window *window)
|
||||
if (keyboard->focus && keyboard->focus != window) {
|
||||
|
||||
/* new window shouldn't think it has mouse captured. */
|
||||
SDL_assert(!window || !(window->flags & SDL_WINDOW_MOUSE_CAPTURE));
|
||||
SDL_assert(window == NULL || !(window->flags & SDL_WINDOW_MOUSE_CAPTURE));
|
||||
|
||||
/* old window must lose an existing mouse capture. */
|
||||
if (keyboard->focus->flags & SDL_WINDOW_MOUSE_CAPTURE) {
|
||||
|
||||
Reference in New Issue
Block a user