Dinosaur wings seem to have originally been used not to fly but to attract a mate.