xrdp-ng: refactoring line drawing