Merge pull request #5895 from lioncash/sw TransformUnit: Get rid of most pointer casting in TransformColor()