Reworked GPU line drawing state machine for better accuracy.