summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2016-11-10 12:45:19 +0100
committerdegasus <wickmarkus@web.de>2016-11-10 12:59:22 +0100
commit193dd9775971501d121ded8fe427c926ed312c31 (patch)
treed1d48a16e57f9b9888b3d32c16d1266e9a3913b6 /Source/Core/VideoCommon/RenderBase.cpp
parent3816207d7bb9c3a38d692c3d3cdb4a927cd5eca6 (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.cpp13
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]);
- }
- }
-}