Implement d2d1 drawline function.

Signed-off-by: Wiki Wang <wikiwang@live.com>