Transforms Y coordinates for screen rendering.