From 6322dbf46a1c56e50804789524e1de8240034494 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 21 Jan 2023 22:59:08 +0100 Subject: [PATCH] fix: Revert back macOS scaling fix as it made it worse --- lib/external/imgui/source/imgui.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/external/imgui/source/imgui.cpp b/lib/external/imgui/source/imgui.cpp index dce49ca80..012421720 100644 --- a/lib/external/imgui/source/imgui.cpp +++ b/lib/external/imgui/source/imgui.cpp @@ -4964,9 +4964,7 @@ static void SetupViewportDrawData(ImGuiViewportP* viewport, ImVectorTotalVtxCount = draw_data->TotalIdxCount = 0; draw_data->DisplayPos = viewport->Pos; draw_data->DisplaySize = is_minimized ? ImVec2(0.0f, 0.0f) : viewport->Size; - // IMHEX PATCH BEGIN - draw_data->FramebufferScale = ImVec2(floor(viewport->DpiScale), floor(viewport->DpiScale)); // FIXME-VIEWPORT: This may vary on a per-monitor/viewport basis? - // IMHEX PATCH END + draw_data->FramebufferScale = io.DisplayFramebufferScale; // FIXME-VIEWPORT: This may vary on a per-monitor/viewport basis? draw_data->OwnerViewport = viewport; for (int n = 0; n < draw_lists->Size; n++) {