diff options
| author | 2021-01-07 15:56:15 -0500 | |
|---|---|---|
| committer | 2021-02-13 13:07:56 -0500 | |
| commit | b675c44e494976cf8164203fc826b54e2fac467b (patch) | |
| tree | 68880d4617e87048fd1c325ed05dc26b434396cf /src/video_core/command_classes | |
| parent | Address PR feedback (diff) | |
| download | yuzu-b675c44e494976cf8164203fc826b54e2fac467b.tar.gz yuzu-b675c44e494976cf8164203fc826b54e2fac467b.tar.xz yuzu-b675c44e494976cf8164203fc826b54e2fac467b.zip | |
rebase, fix name shadowing, more const
Diffstat (limited to 'src/video_core/command_classes')
| -rw-r--r-- | src/video_core/command_classes/vic.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/command_classes/vic.cpp b/src/video_core/command_classes/vic.cpp index 564f9c1e8..0a8b82f2b 100644 --- a/src/video_core/command_classes/vic.cpp +++ b/src/video_core/command_classes/vic.cpp | |||
| @@ -134,10 +134,10 @@ void Vic::Execute() { | |||
| 134 | 134 | ||
| 135 | // Populate luma buffer | 135 | // Populate luma buffer |
| 136 | for (std::size_t y = 0; y < surface_height - 1; ++y) { | 136 | for (std::size_t y = 0; y < surface_height - 1; ++y) { |
| 137 | std::size_t src = y * stride; | 137 | const std::size_t src = y * stride; |
| 138 | std::size_t dst = y * aligned_width; | 138 | const std::size_t dst = y * aligned_width; |
| 139 | 139 | ||
| 140 | std::size_t size = surface_width; | 140 | const std::size_t size = surface_width; |
| 141 | 141 | ||
| 142 | for (std::size_t offset = 0; offset < size; ++offset) { | 142 | for (std::size_t offset = 0; offset < size; ++offset) { |
| 143 | luma_buffer[dst + offset] = luma_ptr[src + offset]; | 143 | luma_buffer[dst + offset] = luma_ptr[src + offset]; |
| @@ -148,8 +148,8 @@ void Vic::Execute() { | |||
| 148 | 148 | ||
| 149 | // Populate chroma buffer from both channels with interleaving. | 149 | // Populate chroma buffer from both channels with interleaving. |
| 150 | for (std::size_t y = 0; y < half_height; ++y) { | 150 | for (std::size_t y = 0; y < half_height; ++y) { |
| 151 | std::size_t src = y * half_stride; | 151 | const std::size_t src = y * half_stride; |
| 152 | std::size_t dst = y * aligned_width; | 152 | const std::size_t dst = y * aligned_width; |
| 153 | 153 | ||
| 154 | for (std::size_t x = 0; x < half_width; ++x) { | 154 | for (std::size_t x = 0; x < half_width; ++x) { |
| 155 | chroma_buffer[dst + x * 2] = chroma_b_ptr[src + x]; | 155 | chroma_buffer[dst + x * 2] = chroma_b_ptr[src + x]; |