diff options
author | Joe <rbo@gmx.us> | 2023-12-19 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2023-12-19 20:20:20 +0100 |
commit | cbb6306546d75b7c5d42a5dda123bbece35ed2ab (patch) | |
tree | 5b20d7c3c8e89fbd6e755c2f714816eb08e36d18 /c_exec.go | |
parent | rdp support (diff) | |
download | hardflip-cbb6306546d75b7c5d42a5dda123bbece35ed2ab.tar.gz hardflip-cbb6306546d75b7c5d42a5dda123bbece35ed2ab.tar.bz2 hardflip-cbb6306546d75b7c5d42a5dda123bbece35ed2ab.tar.xz hardflip-cbb6306546d75b7c5d42a5dda123bbece35ed2ab.tar.zst hardflip-cbb6306546d75b7c5d42a5dda123bbece35ed2ab.zip |
up
Diffstat (limited to '')
-rw-r--r-- | c_exec.go | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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))) |