aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/TextureRender.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/TextureRender.cc')
-rw-r--r--src/FbTk/TextureRender.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/TextureRender.cc b/src/FbTk/TextureRender.cc
index 511136e..f1addb4 100644
--- a/src/FbTk/TextureRender.cc
+++ b/src/FbTk/TextureRender.cc
@@ -127,7 +127,7 @@ void invertRGB(unsigned int w, unsigned int h, FbTk::RGBA* rgba) {
127 FbTk::RGBA* r = rgba + (w * h); 127 FbTk::RGBA* r = rgba + (w * h);
128 128
129 for (--r; l < r; ++l, --r) { // swapping 32bits (RGBA) at ones. 129 for (--r; l < r; ++l, --r) { // swapping 32bits (RGBA) at ones.
130 std::swap(*((unsigned int*)r), *(unsigned int*)r); 130 std::swap(*((unsigned int*)l), *(unsigned int*)r);
131 } 131 }
132} 132}
133 133