[vdp] fixed line_counter arithmetic