Fix pen down and up.

Signed-off-by: cyberzhg <cyberzhg@gmail.com>