Proper About window icon scaling

This commit is contained in:
Luke Street 2021-05-27 10:47:33 -04:00
parent d2160eb74d
commit 8176f9db38
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ void ImGuiConsole::ShowAboutWindow() {
if (ImGui::Begin("About", &m_showAboutWindow,
ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoNav |
ImGuiWindowFlags_NoSavedSettings)) {
float iconSize = 256.f;
float iconSize = 128.f * ImGui::GetIO().DisplayFramebufferScale.x;
ImGui::SameLine(ImGui::GetWindowSize().x / 2 - iconSize + (iconSize / 2));
ImGui::Image(ImGuiUserTextureID_MetaforceIcon, ImVec2{iconSize, iconSize});
ImGui::PushFont(ImGuiEngine::fontLarge);