Skip to content

Commit

Permalink
Merge branch 'master' into mfc-shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
elad335 committed Sep 17, 2021
2 parents ead2ca5 + c2ab3c6 commit 7b0d693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpcs3/Emu/RSX/RSXThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3377,8 +3377,8 @@ namespace rsx
auto scale_result = [](u32 value)
{
const auto scale = rsx::get_resolution_scale_percent();
const auto result = static_cast<u64>(value * 10000) / (scale * scale);
return std::max<u32>(1u, result);
const auto result = (value * 10000ull) / (scale * scale);
return std::max(1u, static_cast<u32>(result));
};

switch (type)
Expand Down

0 comments on commit 7b0d693

Please sign in to comment.