diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2013-01-17 09:58:53 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2013-01-17 09:58:53 (GMT) |
commit | bf5da7f1b6e87f574774558700d066d9cff1f436 (patch) | |
tree | 53deea9f621545a5811bdab072444d4abfc89957 | |
parent | 4eeb8937ba97817a02d751f757e8eee6fc35312f (diff) | |
download | fluxbox-bf5da7f1b6e87f574774558700d066d9cff1f436.zip fluxbox-bf5da7f1b6e87f574774558700d066d9cff1f436.tar.bz2 |
Fix bug: actually invert a given Texture
Stupid typo.
-rw-r--r-- | src/FbTk/TextureRender.cc | 2 |
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 | ||