This commit is contained in:
Ronan 2026-09-22 16:23:41 +12:00 • committed by GitHub
commit e98d67fced
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: