Merge a231c680364bc1f2070f26f449e5f9d6519d58f6 into 1f3ee75ee40c7f224714cd6896f152a902e81652

This commit is contained in:
Ronan 2026-11-05 11:45:29 +01:00 committed by GitHub
commit 1ec6d49d9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -526,7 +526,13 @@ bool ImGui_ImplSDL3_ProcessEvent(const SDL_Event* event)
if (event->type == SDL_EVENT_WINDOW_MOVED)
viewport->PlatformRequestMove = true;
if (event->type == SDL_EVENT_WINDOW_RESIZED)
viewport->PlatformRequestResize = true;
{
int x = int(viewport->Size.x), y = int(viewport->Size.y);
if (x != event->window.data1 || y != event->window.data2)
{
viewport->PlatformRequestResize = true;
}
}
return true;
}
case SDL_EVENT_GAMEPAD_ADDED: