mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-25 00:56:35 +00:00
Merge fixes from ,master branch
This commit is contained in:
parent
7de68fbe3d
commit
444792f75f
@ -1000,8 +1000,7 @@ void ImGui::ShowTestWindow(bool* p_open)
|
|||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
char buf[32];
|
char buf[32];
|
||||||
sprintf(buf, "%08x", i*5731);
|
sprintf(buf, "%08x", i*5731);
|
||||||
if (ImGui::Button(buf, ImVec2(-1.0f, 0.0f)))
|
ImGui::Button(buf, ImVec2(-1.0f, 0.0f));
|
||||||
printf("Pressed '%s'\n", buf);
|
|
||||||
}
|
}
|
||||||
ImGui::EndChild();
|
ImGui::EndChild();
|
||||||
ImGui::PopStyleVar();
|
ImGui::PopStyleVar();
|
||||||
@ -1469,7 +1468,7 @@ void ImGui::ShowTestWindow(bool* p_open)
|
|||||||
ImGui::OpenPopup("Stacked 2");
|
ImGui::OpenPopup("Stacked 2");
|
||||||
if (ImGui::BeginPopupModal("Stacked 2"))
|
if (ImGui::BeginPopupModal("Stacked 2"))
|
||||||
{
|
{
|
||||||
ImGui::Text("Hello from Stacked The Second!\nWe are piling a modal over another here,\nand also testing if the menu-bar works.");
|
ImGui::Text("Hello from Stacked The Second!");
|
||||||
if (ImGui::Button("Close"))
|
if (ImGui::Button("Close"))
|
||||||
ImGui::CloseCurrentPopup();
|
ImGui::CloseCurrentPopup();
|
||||||
ImGui::EndPopup();
|
ImGui::EndPopup();
|
||||||
|
Loading…
Reference in New Issue
Block a user