mirror of https://github.com/AxioDL/metaforce.git
Proper About window icon scaling
This commit is contained in:
parent
d2160eb74d
commit
8176f9db38
|
@ -337,7 +337,7 @@ void ImGuiConsole::ShowAboutWindow() {
|
||||||
if (ImGui::Begin("About", &m_showAboutWindow,
|
if (ImGui::Begin("About", &m_showAboutWindow,
|
||||||
ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoNav |
|
ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoNav |
|
||||||
ImGuiWindowFlags_NoSavedSettings)) {
|
ImGuiWindowFlags_NoSavedSettings)) {
|
||||||
float iconSize = 256.f;
|
float iconSize = 128.f * ImGui::GetIO().DisplayFramebufferScale.x;
|
||||||
ImGui::SameLine(ImGui::GetWindowSize().x / 2 - iconSize + (iconSize / 2));
|
ImGui::SameLine(ImGui::GetWindowSize().x / 2 - iconSize + (iconSize / 2));
|
||||||
ImGui::Image(ImGuiUserTextureID_MetaforceIcon, ImVec2{iconSize, iconSize});
|
ImGui::Image(ImGuiUserTextureID_MetaforceIcon, ImVec2{iconSize, iconSize});
|
||||||
ImGui::PushFont(ImGuiEngine::fontLarge);
|
ImGui::PushFont(ImGuiEngine::fontLarge);
|
||||||
|
|
Loading…
Reference in New Issue