Fix dashed lines drawing with Xwt