From 0996364107b3ef10a2ac5123a60d17b85af24402 Mon Sep 17 00:00:00 2001
From: Matt Borgerson <contact@mborgerson.com>
Date: Tue, 16 Mar 2021 00:59:16 -0700
Subject: [PATCH] ui: Scale video debug advanced graph by scaling factor

---
 ui/xemu-hud.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/xemu-hud.cc b/ui/xemu-hud.cc
index a88f420f90..457c53ff29 100644
--- a/ui/xemu-hud.cc
+++ b/ui/xemu-hud.cc
@@ -1494,7 +1494,7 @@ public:
                 ImPlot::SetNextPlotLimitsX(x_start, x_end, ImGuiCond_Always);
                 ImPlot::SetNextPlotLimitsY(0, 1500, ImGuiCond_Always);
                 ImGui::SetNextWindowBgAlpha(alpha);
-                if (ImPlot::BeginPlot("##ScrollingDraws", NULL, NULL, ImVec2(-1,500), 0, rt_axis, rt_axis | ImPlotAxisFlags_Lock)) {
+                if (ImPlot::BeginPlot("##ScrollingDraws", NULL, NULL, ImVec2(-1,500*g_ui_scale), 0, rt_axis, rt_axis | ImPlotAxisFlags_Lock)) {
                     for (int i = 0; i < NV2A_PROF__COUNT; i++) {
                         ImGui::PushID(i);
                         char title[64];