mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-16 22:05:41 -04:00
Frontend: Make about window modal
This commit is contained in:
parent
b5a8e562e8
commit
52caf312d9
@ -1007,11 +1007,10 @@ void SDLHostInterface::DrawAboutWindow()
|
|||||||
{
|
{
|
||||||
ImGui::SetNextWindowPos(ImVec2(ImGui::GetIO().DisplaySize.x * 0.5f, ImGui::GetIO().DisplaySize.y * 0.5f),
|
ImGui::SetNextWindowPos(ImVec2(ImGui::GetIO().DisplaySize.x * 0.5f, ImGui::GetIO().DisplaySize.y * 0.5f),
|
||||||
ImGuiCond_Appearing, ImVec2(0.5f, 0.5f));
|
ImGuiCond_Appearing, ImVec2(0.5f, 0.5f));
|
||||||
if (!ImGui::Begin("About DuckStation", &m_about_window_open, ImGuiWindowFlags_NoResize))
|
|
||||||
{
|
ImGui::OpenPopup("About DuckStation");
|
||||||
ImGui::End();
|
if (!ImGui::BeginPopupModal("About DuckStation", &m_about_window_open, ImGuiWindowFlags_NoResize))
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
ImGui::Text("DuckStation");
|
ImGui::Text("DuckStation");
|
||||||
ImGui::NewLine();
|
ImGui::NewLine();
|
||||||
@ -1031,7 +1030,7 @@ void SDLHostInterface::DrawAboutWindow()
|
|||||||
if (ImGui::Button("Close", ImVec2(60.0f, 20.0f)))
|
if (ImGui::Button("Close", ImVec2(60.0f, 20.0f)))
|
||||||
m_about_window_open = false;
|
m_about_window_open = false;
|
||||||
|
|
||||||
ImGui::End();
|
ImGui::EndPopup();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDLHostInterface::DrawDebugMenu()
|
void SDLHostInterface::DrawDebugMenu()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user