The closest i\'ve gotten is this:
void Engine::flipSurfaceVertically(SDL_Surface* surface) { SDL_LockSurface(surface); Uint8* pixels = reinterpret_cast&l