GUI: center file picker and limit to win size
This commit is contained in:
parent
3a87017821
commit
797ffd62da
2 changed files with 2 additions and 1 deletions
1
extern/igfd/ImGuiFileDialog.cpp
vendored
1
extern/igfd/ImGuiFileDialog.cpp
vendored
|
|
@ -3617,6 +3617,7 @@ namespace IGFD
|
|||
}
|
||||
if (beg)
|
||||
{
|
||||
ImGui::SetWindowPos(ImVec2((ImGui::GetMainViewport()->Size.x-ImGui::GetWindowWidth())*0.5f,(ImGui::GetMainViewport()->Size.y-ImGui::GetWindowHeight())*0.5f));
|
||||
#ifdef IMGUI_HAS_VIEWPORT
|
||||
// if decoration is enabled we disable the resizing feature of imgui for avoid crash with SDL2 and GLFW3
|
||||
if (ImGui::GetIO().ConfigViewportsNoDecoration)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue