aboutsummaryrefslogtreecommitdiffstats
path: root/c_exec.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-19 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-19 20:20:20 +0100
commitcbb6306546d75b7c5d42a5dda123bbece35ed2ab (patch)
tree5b20d7c3c8e89fbd6e755c2f714816eb08e36d18 /c_exec.go
parentrdp support (diff)
downloadhardflip-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.go17
1 files changed, 16 insertions, 1 deletions
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)))