From c7f647b2cbb50c31f2626513602f7d0fbc987485 Mon Sep 17 00:00:00 2001 From: aemony Date: Mon, 24 Jun 2024 19:21:54 +0200 Subject: [PATCH] ImFloor sizeCover_old too --- src/tabs/viewer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tabs/viewer.cpp b/src/tabs/viewer.cpp index e18c479..d65eb25 100644 --- a/src/tabs/viewer.cpp +++ b/src/tabs/viewer.cpp @@ -1879,6 +1879,8 @@ SKIF_UI_Tab_DrawViewer (void) ImGui::SetCursorPosX ((ImGui::GetContentRegionAvail().x - sizeCover_old.x) * 0.5f); if (sizeCover_old.y < ImGui::GetContentRegionAvail().y) ImGui::SetCursorPosY ((ImGui::GetContentRegionAvail().y - sizeCover_old.y) * 0.5f); + + sizeCover_old = ImFloor (sizeCover_old); SKIF_ImGui_OptImage (cover_old.pRawTexSRV.p, ImVec2 (sizeCover_old.x,