Commit MetaInfo

Revisão8350a4792a3ae0a1c6689b859e94b038cf914ad9 (tree)
Hora2020-03-03 06:27:39
AutorDavid Ludwig <dludwig@pobo...>
CommiterDavid Ludwig

Mensagem de Log

persist window sizes and positions in ImGui's .ini file

Mudança Sumário

Diff

diff -r 7f27942eebd5 -r 8350a4792a3a main.cpp
--- a/main.cpp Mon Mar 02 16:26:38 2020 -0500
+++ b/main.cpp Mon Mar 02 16:27:39 2020 -0500
@@ -242,8 +242,8 @@
242242 void ShowJoystickChildWindow(int device_index);
243243 void ShowJoysticksWindow()
244244 {
245- ImGui::SetNextWindowPos(joystickWindowPos, ImGuiCond_Once);
246- ImGui::SetNextWindowSize(joystickWindowSize, ImGuiCond_Once);
245+ ImGui::SetNextWindowPos(joystickWindowPos, ImGuiCond_FirstUseEver);
246+ ImGui::SetNextWindowSize(joystickWindowSize, ImGuiCond_FirstUseEver);
247247 ImGui::Begin("Joysticks", NULL, 0);
248248
249249 #if SDL_JOYSTICK_VIRTUAL
@@ -746,8 +746,8 @@
746746
747747 static void ShowGameControllersWindow()
748748 {
749- ImGui::SetNextWindowPos(gameControllersWindowPos, ImGuiCond_Once);
750- ImGui::SetNextWindowSize(gameControllersWindowSize, ImGuiCond_Once);
749+ ImGui::SetNextWindowPos(gameControllersWindowPos, ImGuiCond_FirstUseEver);
750+ ImGui::SetNextWindowSize(gameControllersWindowSize, ImGuiCond_FirstUseEver);
751751 ImGui::Begin("Game Controllers", NULL, 0);
752752
753753 // if (ImGui::Button("Add Virtual Game Controller")) {
Show on old repository browser