SFML community forums
General => General discussions => Topic started by: FRex on May 22, 2013, 05:52:35 pm
-
Starting at line 236:
void Image::setPixel(unsigned int x, unsigned int y, const Color& color)
{
Uint8* pixel = &m_pixels[(x + y * m_size.x) * 4];
*pixel++ = color.r;
*pixel++ = color.g;
*pixel++ = color.b;
*pixel++ = color.a;
}
The operator marked in red serves no purpose in this function.
Sorry.. ;D
-
Yeah... and the compiler is certainly smart enough to generate no code for it ;)
-
Yeah, but since you accepted the trimming-whitespaces-from-empty-lines patch I guessed why not troll about that too.. :P
-
Sure, let's troll about that ;)
-
Only thing I'm curious about: was that copy paste programming ;D?
-
No, I think it was intentional. It's more beautiful this way ;)
-
Hehe ;) Cool. Feel free to lock this thread now. :P