Core: Apply DPI scaling to debug windows

This commit is contained in:
Connor McLaughlin
2020-02-28 16:59:51 +10:00
parent ce31c85983
commit 82eb14efb1
6 changed files with 30 additions and 19 deletions

View File

@ -705,7 +705,9 @@ void MDEC::HandleSetScaleCommand()
void MDEC::DrawDebugStateWindow()
{
ImGui::SetNextWindowSize(ImVec2(300, 350), ImGuiCond_FirstUseEver);
const float framebuffer_scale = ImGui::GetIO().DisplayFramebufferScale.x;
ImGui::SetNextWindowSize(ImVec2(300.0f * framebuffer_scale, 350.0f * framebuffer_scale), ImGuiCond_FirstUseEver);
if (!ImGui::Begin("MDEC State", &m_system->GetSettings().debugging.show_mdec_state))
{
ImGui::End();