palette update before SDL_Flip()

It seems to look better than updating after SDL_Flip() though I expected
the opposite. Go figure.