diff options
| author | degasus <wickmarkus@web.de> | 2016-11-10 12:45:19 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2016-11-10 12:59:22 +0100 |
| commit | 193dd9775971501d121ded8fe427c926ed312c31 (patch) | |
| tree | d1d48a16e57f9b9888b3d32c16d1266e9a3913b6 /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | 3816207d7bb9c3a38d692c3d3cdb4a927cd5eca6 (diff) | |
VideoCommon: Drop FlipImageData.
This function isn't used any more, and good code shouldn't use it at all. Use negative strides instead.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index c1298e0822..623ac973ad 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -757,16 +757,3 @@ void Renderer::RunFrameDumps() } #endif } - -void Renderer::FlipImageData(u8* data, int w, int h, int pixel_width) -{ - for (int y = 0; y < h / 2; ++y) - { - for (int x = 0; x < w; ++x) - { - for (int delta = 0; delta < pixel_width; ++delta) - std::swap(data[(y * w + x) * pixel_width + delta], - data[((h - 1 - y) * w + x) * pixel_width + delta]); - } - } -} |
