Reverted changes. Changed ordering of linecap enum.