From cbb6306546d75b7c5d42a5dda123bbece35ed2ab Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 19 Dec 2023 20:20:20 +0100 Subject: up --- c_exec.go | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'c_exec.go') diff --git a/c_exec.go b/c_exec.go index 05bdf3b..be22e1c 100644 --- a/c_exec.go +++ b/c_exec.go @@ -39,7 +39,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/c_exec.go - * Mon, 18 Dec 2023 15:07:52 +0100 + * Tue Dec 19 19:39:54 2023 * Joe * * exec the command at some point @@ -109,6 +109,21 @@ func c_format_rdp(host *HostNode) []string { if len(host.Pass) > 0 { cmd_fmt = append(cmd_fmt, "/p:" + host.Pass) } + if host.Dynamic == true { + cmd_fmt = append(cmd_fmt, "/dynamic-resolution") + } + if host.Quality == 0 { + cmd_fmt = append(cmd_fmt, + "-aero", "-menu-anims", "-window-drag", "-wallpaper", + "-decorations", "-fonts", "-themes", + "/bpp:8", "/compression-level:2") + } else if host.Quality == 1 { + } else { + cmd_fmt = append(cmd_fmt, + "+aero", "+menu-anims", "+window-drag", + "+decorations", "+fonts", "+themes", "/gfx:RFX", "/rfx", "/gdi:hw", + "/bpp:32") + } cmd_fmt = append(cmd_fmt, "/size:" + strconv.Itoa(int(host.Width)) + "x" + strconv.Itoa(int(host.Height))) -- cgit v1.2.3