Fix bug: actually invert a given Texture
Stupid typo.
This commit is contained in:
parent
4eeb8937ba
commit
bf5da7f1b6
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ void invertRGB(unsigned int w, unsigned int h, FbTk::RGBA* rgba) {
|
||||||
FbTk::RGBA* r = rgba + (w * h);
|
FbTk::RGBA* r = rgba + (w * h);
|
||||||
|
|
||||||
for (--r; l < r; ++l, --r) { // swapping 32bits (RGBA) at ones.
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue