mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-06 06:25:54 +01:00
Merge a231c680364bc1f2070f26f449e5f9d6519d58f6 into 1f3ee75ee40c7f224714cd6896f152a902e81652
This commit is contained in:
commit
1ec6d49d9b
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user