mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-18 03:54:19 +01:00
FSUI: Fix CenterImage() fill when using ImRect for fit
This commit is contained in:
1 parent
d613701780
commit
b67c03cc75
1 file changed
+1
-1
@@ -671,7 +671,7 @@ ImRect ImGuiFullscreen::CenterImage(const ImVec2& fit_size, const ImVec2& image_
|
||||
|
||||
ImRect ImGuiFullscreen::CenterImage(const ImRect& fit_rect, const ImVec2& image_size, bool fill)
|
||||
{
|
||||
ImRect ret(CenterImage(fit_rect.Max - fit_rect.Min, image_size));
|
||||
ImRect ret(CenterImage(fit_rect.Max - fit_rect.Min, image_size, fill));
|
||||
ret.Translate(fit_rect.Min);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user