Core: Apply DPI scaling to debug windows
This commit is contained in:
parent
ce31c85983
commit
82eb14efb1
6 changed files with 30 additions and 19 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue