Skip to content

Commit

Permalink
ImFloor sizeCover_old too
Browse files Browse the repository at this point in the history
  • Loading branch information
Aemony committed Jun 24, 2024
1 parent 8201862 commit c7f647b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tabs/viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c7f647b

Please sign in to comment.