1
0
mirror of synced 2024-11-28 17:40:51 +01:00

fix: Revert back macOS scaling fix as it made it worse

This commit is contained in:
WerWolv 2023-01-21 22:59:08 +01:00
parent 0e1aeee3fb
commit 6322dbf46a

View File

@ -4964,9 +4964,7 @@ static void SetupViewportDrawData(ImGuiViewportP* viewport, ImVector<ImDrawList*
draw_data->TotalVtxCount = draw_data->TotalIdxCount = 0; draw_data->TotalVtxCount = draw_data->TotalIdxCount = 0;
draw_data->DisplayPos = viewport->Pos; draw_data->DisplayPos = viewport->Pos;
draw_data->DisplaySize = is_minimized ? ImVec2(0.0f, 0.0f) : viewport->Size; draw_data->DisplaySize = is_minimized ? ImVec2(0.0f, 0.0f) : viewport->Size;
// IMHEX PATCH BEGIN draw_data->FramebufferScale = io.DisplayFramebufferScale; // FIXME-VIEWPORT: This may vary on a per-monitor/viewport basis?
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->OwnerViewport = viewport; draw_data->OwnerViewport = viewport;
for (int n = 0; n < draw_lists->Size; n++) for (int n = 0; n < draw_lists->Size; n++)
{ {