Optimise R_DisplaceMap.

The maths was such that the first three channels were set to 1 if 0, else
left unchanged.