xrdp-ng: refactor line drawing