I would have bet there is need of a shift in 8bpp palette, but since this fixes more than the opposite I had probably made something wrong...