simpler calculation
cursor is a pen in drawing mode