From bf5da7f1b6e87f574774558700d066d9cff1f436 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Thu, 17 Jan 2013 10:58:53 +0100 Subject: Fix bug: actually invert a given Texture Stupid typo. --- src/FbTk/TextureRender.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { FbTk::RGBA* r = rgba + (w * h); for (--r; l < r; ++l, --r) { // swapping 32bits (RGBA) at ones. - std::swap(*((unsigned int*)r), *(unsigned int*)r); + std::swap(*((unsigned int*)l), *(unsigned int*)r); } } -- cgit v0.11.2