From e9e592b43a5d77d1f07ad58abdf2750a2514f7e4 Mon Sep 17 00:00:00 2001
From: Bolke de Bruin <bolke@xs4all.nl>
Date: Wed, 13 Sep 2023 11:27:19 +0200
Subject: [PATCH] Add missing rdp options

Some options were missing so they could not be set
in the rdp template.

Closes: #78
---
 cmd/rdpgw/rdp/rdp.go | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/cmd/rdpgw/rdp/rdp.go b/cmd/rdpgw/rdp/rdp.go
index 3b5a6a4..664bc15 100644
--- a/cmd/rdpgw/rdp/rdp.go
+++ b/cmd/rdpgw/rdp/rdp.go
@@ -27,6 +27,12 @@ const (
 )
 
 type RdpSettings struct {
+	AllowFontSmoothing                    string `rdp:"allow font smoothing" default:"0"`
+	AllowDesktopComposition               string `rdp:"allow desktop composition" default:"0"`
+	DisableFullWindowDrag                 string `rdp:"disable full window drag" default:"0"`
+	DisableMenuAnims                      string `rdp:"disable menu anims" default:"0"`
+	DisableThemes                         string `rdp:"disable themes" default:"0"`
+	DisableCursorSetting                  string `rdp:"disable cursor setting" default:"0"`
 	GatewayHostname                       string `rdp:"gatewayhostname"`
 	FullAddress                           string `rdp:"full address"`
 	AlternateFullAddress                  string `rdp:"alternate full address"`
@@ -75,6 +81,7 @@ type RdpSettings struct {
 	DesktopWidth                          int    `rdp:"desktopwidth"`
 	DesktopScaleFactor                    int    `rdp:"desktopscalefactor"`
 	BitmapCacheSize                       int    `rdp:"bitmapcachesize" default:"1500"`
+	BitmapCachePersistEnable              bool   `rdp:"bitmapcachepersistenable" default:"true"`
 	RemoteApplicationCmdLine              string `rdp:"remoteapplicationcmdline"`
 	RemoteAppExpandWorkingDir             bool   `rdp:"remoteapplicationexpandworkingdir" default:"true"`
 	RemoteApplicationFile                 string `rdp:"remoteapplicationfile" default:"true"`
-- 
GitLab