aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2013-01-17 09:58:53 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2013-01-17 09:58:53 (GMT)
commitbf5da7f1b6e87f574774558700d066d9cff1f436 (patch)
tree53deea9f621545a5811bdab072444d4abfc89957 /src
parent4eeb8937ba97817a02d751f757e8eee6fc35312f (diff)
downloadfluxbox-bf5da7f1b6e87f574774558700d066d9cff1f436.zip
fluxbox-bf5da7f1b6e87f574774558700d066d9cff1f436.tar.bz2
Fix bug: actually invert a given Texture
Stupid typo.
Diffstat (limited to 'src')
-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