Timers: Fix debug window rendering in hidpi
This commit is contained in:
parent
3e16746e85
commit
ba7517fccc
|
@ -5,6 +5,7 @@
|
||||||
#include "common/bitfield.h"
|
#include "common/bitfield.h"
|
||||||
#include "common/log.h"
|
#include "common/log.h"
|
||||||
#include "gpu.h"
|
#include "gpu.h"
|
||||||
|
#include "host.h"
|
||||||
#include "imgui.h"
|
#include "imgui.h"
|
||||||
#include "interrupt_controller.h"
|
#include "interrupt_controller.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
@ -472,7 +473,7 @@ void Timers::DrawDebugStateWindow()
|
||||||
{{"SysClk", "HBlank", "SysClk", "HBlank"}},
|
{{"SysClk", "HBlank", "SysClk", "HBlank"}},
|
||||||
{{"SysClk", "DotClk", "SysClk/8", "SysClk/8"}}}};
|
{{"SysClk", "DotClk", "SysClk/8", "SysClk/8"}}}};
|
||||||
|
|
||||||
const float framebuffer_scale = ImGui::GetIO().DisplayFramebufferScale.x;
|
const float framebuffer_scale = Host::GetOSDScale();
|
||||||
|
|
||||||
ImGui::SetNextWindowSize(ImVec2(800.0f * framebuffer_scale, 100.0f * framebuffer_scale), ImGuiCond_FirstUseEver);
|
ImGui::SetNextWindowSize(ImVec2(800.0f * framebuffer_scale, 100.0f * framebuffer_scale), ImGuiCond_FirstUseEver);
|
||||||
if (!ImGui::Begin("Timer State", nullptr))
|
if (!ImGui::Begin("Timer State", nullptr))
|
||||||
|
|
Loading…
Reference in New Issue