draw: handle edgeflags and reset-line-stipple again