diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2025-10-31 13:15:15 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2025-10-31 13:28:14 -0500 |
| commit | 6728007cb4832c80745df73f980ccff53691368f (patch) | |
| tree | 2ba1884b27ec00edef7b27462d55451049e69686 /Source/Core/VideoCommon/BPFunctions.cpp | |
| parent | ee7c476e24d59af2c6b8e24486cd08ff09946112 (diff) | |
VideoCommon: rename ScissorResult 'm_result' to 'rectangles' to better reflect what the member is
Diffstat (limited to 'Source/Core/VideoCommon/BPFunctions.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPFunctions.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/BPFunctions.cpp b/Source/Core/VideoCommon/BPFunctions.cpp index 1018af0142..660d85c598 100644 --- a/Source/Core/VideoCommon/BPFunctions.cpp +++ b/Source/Core/VideoCommon/BPFunctions.cpp @@ -131,7 +131,7 @@ ScissorResult::ScissorResult(ScissorPos scissor_top_left, ScissorPos scissor_bot RangeList x_ranges = ComputeScissorRanges(left, right, x_off, EFB_WIDTH); RangeList y_ranges = ComputeScissorRanges(top, bottom, y_off, EFB_HEIGHT); - m_result.reserve(x_ranges.size() * y_ranges.size()); + rectangles.reserve(x_ranges.size() * y_ranges.size()); // Now we need to form actual rectangles from the x and y ranges, // which is a simple Cartesian product of x_ranges_clamped and y_ranges_clamped. @@ -145,12 +145,12 @@ ScissorResult::ScissorResult(ScissorPos scissor_top_left, ScissorPos scissor_bot { DEBUG_ASSERT(y_range.start < y_range.end); DEBUG_ASSERT(static_cast<u32>(y_range.end) <= EFB_HEIGHT); - m_result.emplace_back(x_range, y_range); + rectangles.emplace_back(x_range, y_range); } } auto cmp = [&](const ScissorRect& lhs, const ScissorRect& rhs) { return IsWorse(lhs, rhs); }; - std::ranges::sort(m_result, cmp); + std::ranges::sort(rectangles, cmp); } ScissorRect ScissorResult::Best() const @@ -158,9 +158,9 @@ ScissorRect ScissorResult::Best() const // For now, simply choose the best rectangle (see ScissorResult::IsWorse). // This does mean we calculate all rectangles and only choose one, which is not optimal, but this // is called infrequently. Eventually, all backends will support multiple scissor rects. - if (!m_result.empty()) + if (!rectangles.empty()) { - return m_result.back(); + return rectangles.back(); } else { |
