Fix bug: actually invert a given Texture

Stupid typo.
This commit is contained in:
Mathias Gumz 2013-01-17 10:58:53 +01:00
parent 4eeb8937ba
commit bf5da7f1b6

View file

@ -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);
}
}