diff --git a/mRemoteV1/App/App.Info.vb b/mRemoteV1/App/App.Info.vb index d804e3e75..6c116d87d 100644 --- a/mRemoteV1/App/App.Info.vb +++ b/mRemoteV1/App/App.Info.vb @@ -36,7 +36,7 @@ Namespace App Public Shared ReadOnly DefaultConnectionsPath As String = App.Info.Settings.SettingsPath Public Shared ReadOnly DefaultConnectionsFile As String = "confCons.xml" Public Shared ReadOnly DefaultConnectionsFileNew As String = "confConsNew.xml" - Public Shared ReadOnly ConnectionFileVersion As Double = 2.2 + Public Shared ReadOnly ConnectionFileVersion As Double = 2.3 End Class Public Class Credentials diff --git a/mRemoteV1/App/App.Runtime.vb b/mRemoteV1/App/App.Runtime.vb index ffdf2b882..c273121cb 100644 --- a/mRemoteV1/App/App.Runtime.vb +++ b/mRemoteV1/App/App.Runtime.vb @@ -449,6 +449,7 @@ Namespace App My.Settings.ConDefaultCacheBitmaps = .CacheBitmaps My.Settings.ConDefaultDisplayWallpaper = .DisplayWallpaper My.Settings.ConDefaultDisplayThemes = .DisplayThemes + My.Settings.ConDefaultEnableFontSmoothing = .EnableFontSmoothing My.Settings.ConDefaultRedirectKeys = .RedirectKeys My.Settings.ConDefaultRedirectDiskDrives = .RedirectDiskDrives My.Settings.ConDefaultRedirectPrinters = .RedirectPrinters @@ -509,6 +510,7 @@ Namespace App My.Settings.InhDefaultCacheBitmaps = .CacheBitmaps My.Settings.InhDefaultDisplayWallpaper = .DisplayWallpaper My.Settings.InhDefaultDisplayThemes = .DisplayThemes + My.Settings.InhDefaultEnableFontSmoothing = .EnableFontSmoothing My.Settings.InhDefaultRedirectKeys = .RedirectKeys My.Settings.InhDefaultRedirectDiskDrives = .RedirectDiskDrives My.Settings.InhDefaultRedirectPrinters = .RedirectPrinters @@ -923,6 +925,12 @@ Namespace App Else nConI.DisplayThemes = False End If + Case "allow font smoothing" + If pValue = 1 Then + nConI.EnableFontSmoothing = True + Else + nConI.EnableFontSmoothing = False + End If Case "redirectsmartcards" If pValue = 1 Then nConI.RedirectSmartCards = True diff --git a/mRemoteV1/Config/Config.Connections.Load.vb b/mRemoteV1/Config/Config.Connections.Load.vb index a3931a27b..fbd609ae5 100644 --- a/mRemoteV1/Config/Config.Connections.Load.vb +++ b/mRemoteV1/Config/Config.Connections.Load.vb @@ -426,6 +426,7 @@ Namespace Config conI.Domain = .Item("DomainName") conI.DisplayWallpaper = .Item("DisplayWallpaper") conI.DisplayThemes = .Item("DisplayThemes") + conI.EnableFontSmoothing = .Item("EnableFontSmoothing") conI.CacheBitmaps = .Item("CacheBitmaps") conI.UseConsoleSession = .Item("ConnectToConsole") @@ -449,6 +450,7 @@ Namespace Config conI.Inherit.Description = .Item("InheritDescription") conI.Inherit.DisplayThemes = .Item("InheritDisplayThemes") conI.Inherit.DisplayWallpaper = .Item("InheritDisplayWallpaper") + conI.Inherit.EnableFontSmoothing = .Item("InheritEnableFontSmoothing") conI.Inherit.Domain = .Item("InheritDomain") conI.Inherit.Icon = .Item("InheritIcon") conI.Inherit.Panel = .Item("InheritPanel") @@ -1000,6 +1002,14 @@ Namespace Config conI.Inherit.RDGatewayPassword = .Attributes("InheritRDGatewayPassword").Value conI.Inherit.RDGatewayDomain = .Attributes("InheritRDGatewayDomain").Value End If + + If Me.confVersion > 2.2 Then '2.3 + ' Get settings + conI.EnableFontSmoothing = .Attributes("EnableFontSmoothing").Value + + ' Get inheritance settings + conI.Inherit.EnableFontSmoothing = .Attributes("InheritEnableFontSmoothing").Value + End If End With Return conI diff --git a/mRemoteV1/Config/Config.Connections.Save.vb b/mRemoteV1/Config/Config.Connections.Save.vb index 23488f632..7687854f3 100644 --- a/mRemoteV1/Config/Config.Connections.Save.vb +++ b/mRemoteV1/Config/Config.Connections.Save.vb @@ -220,14 +220,14 @@ Namespace Config sqlQuery = New SqlCommand("INSERT INTO tblCons (Name, Type, Expanded, Description, Icon, Panel, Username, " & _ "DomainName, Password, Hostname, Protocol, PuttySession, " & _ "Port, ConnectToConsole, RenderingEngine, ICAEncryptionStrength, RDPAuthenticationLevel, Colors, Resolution, DisplayWallpaper, " & _ - "DisplayThemes, CacheBitmaps, RedirectDiskDrives, RedirectPorts, " & _ + "DisplayThemes, EnableFontSmoothing, CacheBitmaps, RedirectDiskDrives, RedirectPorts, " & _ "RedirectPrinters, RedirectSmartCards, RedirectSound, RedirectKeys, " & _ "Connected, PreExtApp, PostExtApp, MacAddress, UserField, ExtApp, VNCCompression, VNCEncoding, VNCAuthMode, " & _ "VNCProxyType, VNCProxyIP, VNCProxyPort, VNCProxyUsername, VNCProxyPassword, " & _ "VNCColors, VNCSmartSizeMode, VNCViewOnly, " & _ "RDGatewayUsageMethod, RDGatewayHostname, RDGatewayUseConnectionCredentials, RDGatewayUsername, RDGatewayPassword, RDGatewayDomain, " & _ "InheritCacheBitmaps, InheritColors, " & _ - "InheritDescription, InheritDisplayThemes, InheritDisplayWallpaper, InheritDomain, " & _ + "InheritDescription, InheritDisplayThemes, InheritDisplayWallpaper, InheritEnableFontSmoothing, InheritDomain, " & _ "InheritIcon, InheritPanel, InheritPassword, InheritPort, " & _ "InheritProtocol, InheritPuttySession, InheritRedirectDiskDrives, " & _ "InheritRedirectKeys, InheritRedirectPorts, InheritRedirectPrinters, " & _ @@ -308,6 +308,7 @@ Namespace Config sqlQuery.CommandText &= "'" & .Resolution.ToString & "'," sqlQuery.CommandText &= "'" & .DisplayWallpaper & "'," sqlQuery.CommandText &= "'" & .DisplayThemes & "'," + sqlQuery.CommandText &= "'" & .EnableFontSmoothing & "'," sqlQuery.CommandText &= "'" & .CacheBitmaps & "'," sqlQuery.CommandText &= "'" & .RedirectDiskDrives & "'," sqlQuery.CommandText &= "'" & .RedirectPorts & "'," @@ -369,6 +370,7 @@ Namespace Config sqlQuery.CommandText &= "'" & .Description & "'," sqlQuery.CommandText &= "'" & .DisplayThemes & "'," sqlQuery.CommandText &= "'" & .DisplayWallpaper & "'," + sqlQuery.CommandText &= "'" & .EnableFontSmoothing & "'," sqlQuery.CommandText &= "'" & .Domain & "'," sqlQuery.CommandText &= "'" & .Icon & "'," sqlQuery.CommandText &= "'" & .Panel & "'," @@ -634,6 +636,8 @@ Namespace Config xW.WriteAttributeString("DisplayThemes", "", curConI.DisplayThemes) + xW.WriteAttributeString("EnableFontSmoothing", "", curConI.EnableFontSmoothing) + xW.WriteAttributeString("CacheBitmaps", "", curConI.CacheBitmaps) xW.WriteAttributeString("RedirectDiskDrives", "", curConI.RedirectDiskDrives) @@ -701,6 +705,7 @@ Namespace Config xW.WriteAttributeString("InheritDescription", "", curConI.Inherit.Description) xW.WriteAttributeString("InheritDisplayThemes", "", curConI.Inherit.DisplayThemes) xW.WriteAttributeString("InheritDisplayWallpaper", "", curConI.Inherit.DisplayWallpaper) + xW.WriteAttributeString("InheritEnableFontSmoothing", "", curConI.Inherit.EnableFontSmoothing) xW.WriteAttributeString("InheritDomain", "", curConI.Inherit.Domain) xW.WriteAttributeString("InheritIcon", "", curConI.Inherit.Icon) xW.WriteAttributeString("InheritPanel", "", curConI.Inherit.Panel) @@ -748,6 +753,7 @@ Namespace Config xW.WriteAttributeString("InheritDescription", "", False) xW.WriteAttributeString("InheritDisplayThemes", "", False) xW.WriteAttributeString("InheritDisplayWallpaper", "", False) + xW.WriteAttributeString("InheritEnableFontSmoothing", "", False) xW.WriteAttributeString("InheritDomain", "", False) xW.WriteAttributeString("InheritIcon", "", False) xW.WriteAttributeString("InheritPanel", "", False) @@ -828,10 +834,10 @@ Namespace Config csvLn += "Domain;" End If - csvLn += "Hostname;Protocol;PuttySession;Port;ConnectToConsole;RenderingEngine;ICAEncryptionStrength;RDPAuthenticationLevel;Colors;Resolution;DisplayWallpaper;DisplayThemes;CacheBitmaps;RedirectDiskDrives;RedirectPorts;RedirectPrinters;RedirectSmartCards;RedirectSound;RedirectKeys;PreExtApp;PostExtApp;MacAddress;UserField;ExtApp;VNCCompression;VNCEncoding;VNCAuthMode;VNCProxyType;VNCProxyIP;VNCProxyPort;VNCProxyUsername;VNCProxyPassword;VNCColors;VNCSmartSizeMode;VNCViewOnly;RDGatewayUsageMethod;RDGatewayHostname;RDGatewayUseConnectionCredentials;RDGatewayUsername;RDGatewayPassword;RDGatewayDomain;" + csvLn += "Hostname;Protocol;PuttySession;Port;ConnectToConsole;RenderingEngine;ICAEncryptionStrength;RDPAuthenticationLevel;Colors;Resolution;DisplayWallpaper;DisplayThemes;EnableFontSmoothing;CacheBitmaps;RedirectDiskDrives;RedirectPorts;RedirectPrinters;RedirectSmartCards;RedirectSound;RedirectKeys;PreExtApp;PostExtApp;MacAddress;UserField;ExtApp;VNCCompression;VNCEncoding;VNCAuthMode;VNCProxyType;VNCProxyIP;VNCProxyPort;VNCProxyUsername;VNCProxyPassword;VNCColors;VNCSmartSizeMode;VNCViewOnly;RDGatewayUsageMethod;RDGatewayHostname;RDGatewayUseConnectionCredentials;RDGatewayUsername;RDGatewayPassword;RDGatewayDomain;" If SaveSecurity.Inheritance Then - csvLn += "InheritCacheBitmaps;InheritColors;InheritDescription;InheritDisplayThemes;InheritDisplayWallpaper;InheritDomain;InheritIcon;InheritPanel;InheritPassword;InheritPort;InheritProtocol;InheritPuttySession;InheritRedirectDiskDrives;InheritRedirectKeys;InheritRedirectPorts;InheritRedirectPrinters;InheritRedirectSmartCards;InheritRedirectSound;InheritResolution;InheritUseConsoleSession;InheritRenderingEngine;InheritUsername;InheritICAEncryptionStrength;InheritRDPAuthenticationLevel;InheritPreExtApp;InheritPostExtApp;InheritMacAddress;InheritUserField;InheritExtApp;InheritVNCCompression;InheritVNCEncoding;InheritVNCAuthMode;InheritVNCProxyType;InheritVNCProxyIP;InheritVNCProxyPort;InheritVNCProxyUsername;InheritVNCProxyPassword;InheritVNCColors;InheritVNCSmartSizeMode;InheritVNCViewOnly;InheritRDGatewayUsageMethod;InheritRDGatewayHostname;InheritRDGatewayUseConnectionCredentials;InheritRDGatewayUsername;InheritRDGatewayPassword;InheritRDGatewayDomain" + csvLn += "InheritCacheBitmaps;InheritColors;InheritDescription;InheritDisplayThemes;InheritDisplayWallpaper;InheritEnableFontSmoothing;InheritDomain;InheritIcon;InheritPanel;InheritPassword;InheritPort;InheritProtocol;InheritPuttySession;InheritRedirectDiskDrives;InheritRedirectKeys;InheritRedirectPorts;InheritRedirectPrinters;InheritRedirectSmartCards;InheritRedirectSound;InheritResolution;InheritUseConsoleSession;InheritRenderingEngine;InheritUsername;InheritICAEncryptionStrength;InheritRDPAuthenticationLevel;InheritPreExtApp;InheritPostExtApp;InheritMacAddress;InheritUserField;InheritExtApp;InheritVNCCompression;InheritVNCEncoding;InheritVNCAuthMode;InheritVNCProxyType;InheritVNCProxyIP;InheritVNCProxyPort;InheritVNCProxyUsername;InheritVNCProxyPassword;InheritVNCColors;InheritVNCSmartSizeMode;InheritVNCViewOnly;InheritRDGatewayUsageMethod;InheritRDGatewayHostname;InheritRDGatewayUseConnectionCredentials;InheritRDGatewayUsername;InheritRDGatewayPassword;InheritRDGatewayDomain" End If csvWr.WriteLine(csvLn) @@ -882,10 +888,10 @@ Namespace Config csvLn += con.Domain & ";" End If - csvLn += con.Hostname & ";" & con.Protocol.ToString & ";" & con.PuttySession & ";" & con.Port & ";" & con.UseConsoleSession & ";" & con.RenderingEngine.ToString & ";" & con.ICAEncryption.ToString & ";" & con.RDPAuthenticationLevel.ToString & ";" & con.Colors.ToString & ";" & con.Resolution.ToString & ";" & con.DisplayWallpaper & ";" & con.DisplayThemes & ";" & con.CacheBitmaps & ";" & con.RedirectDiskDrives & ";" & con.RedirectPorts & ";" & con.RedirectPrinters & ";" & con.RedirectSmartCards & ";" & con.RedirectSound.ToString & ";" & con.RedirectKeys & ";" & con.PreExtApp & ";" & con.PostExtApp & ";" & con.MacAddress & ";" & con.UserField & ";" & con.ExtApp & ";" & con.VNCCompression.ToString & ";" & con.VNCEncoding.ToString & ";" & con.VNCAuthMode.ToString & ";" & con.VNCProxyType.ToString & ";" & con.VNCProxyIP & ";" & con.VNCProxyPort & ";" & con.VNCProxyUsername & ";" & con.VNCProxyPassword & ";" & con.VNCColors.ToString & ";" & con.VNCSmartSizeMode.ToString & ";" & con.VNCViewOnly & ";" + csvLn += con.Hostname & ";" & con.Protocol.ToString & ";" & con.PuttySession & ";" & con.Port & ";" & con.UseConsoleSession & ";" & con.RenderingEngine.ToString & ";" & con.ICAEncryption.ToString & ";" & con.RDPAuthenticationLevel.ToString & ";" & con.Colors.ToString & ";" & con.Resolution.ToString & ";" & con.DisplayWallpaper & ";" & con.DisplayThemes & ";" & con.EnableFontSmoothing & ";" & con.CacheBitmaps & ";" & con.RedirectDiskDrives & ";" & con.RedirectPorts & ";" & con.RedirectPrinters & ";" & con.RedirectSmartCards & ";" & con.RedirectSound.ToString & ";" & con.RedirectKeys & ";" & con.PreExtApp & ";" & con.PostExtApp & ";" & con.MacAddress & ";" & con.UserField & ";" & con.ExtApp & ";" & con.VNCCompression.ToString & ";" & con.VNCEncoding.ToString & ";" & con.VNCAuthMode.ToString & ";" & con.VNCProxyType.ToString & ";" & con.VNCProxyIP & ";" & con.VNCProxyPort & ";" & con.VNCProxyUsername & ";" & con.VNCProxyPassword & ";" & con.VNCColors.ToString & ";" & con.VNCSmartSizeMode.ToString & ";" & con.VNCViewOnly & ";" If SaveSecurity.Inheritance Then - csvLn += con.Inherit.CacheBitmaps & ";" & con.Inherit.Colors & ";" & con.Inherit.Description & ";" & con.Inherit.DisplayThemes & ";" & con.Inherit.DisplayWallpaper & ";" & con.Inherit.Domain & ";" & con.Inherit.Icon & ";" & con.Inherit.Panel & ";" & con.Inherit.Password & ";" & con.Inherit.Port & ";" & con.Inherit.Protocol & ";" & con.Inherit.PuttySession & ";" & con.Inherit.RedirectDiskDrives & ";" & con.Inherit.RedirectKeys & ";" & con.Inherit.RedirectPorts & ";" & con.Inherit.RedirectPrinters & ";" & con.Inherit.RedirectSmartCards & ";" & con.Inherit.RedirectSound & ";" & con.Inherit.Resolution & ";" & con.Inherit.UseConsoleSession & ";" & con.Inherit.RenderingEngine & ";" & con.Inherit.Username & ";" & con.Inherit.ICAEncryption & ";" & con.Inherit.RDPAuthenticationLevel & ";" & con.Inherit.PreExtApp & ";" & con.Inherit.PostExtApp & ";" & con.Inherit.MacAddress & ";" & con.Inherit.UserField & ";" & con.Inherit.ExtApp & ";" & con.Inherit.VNCCompression & ";" & con.Inherit.VNCEncoding & ";" & con.Inherit.VNCAuthMode & ";" & con.Inherit.VNCProxyType & ";" & con.Inherit.VNCProxyIP & ";" & con.Inherit.VNCProxyPort & ";" & con.Inherit.VNCProxyUsername & ";" & con.Inherit.VNCProxyPassword & ";" & con.Inherit.VNCColors & ";" & con.Inherit.VNCSmartSizeMode & ";" & con.Inherit.VNCViewOnly + csvLn += con.Inherit.CacheBitmaps & ";" & con.Inherit.Colors & ";" & con.Inherit.Description & ";" & con.Inherit.DisplayThemes & ";" & con.Inherit.DisplayWallpaper & ";" & con.Inherit.EnableFontSmoothing & ";" & con.Inherit.Domain & ";" & con.Inherit.Icon & ";" & con.Inherit.Panel & ";" & con.Inherit.Password & ";" & con.Inherit.Port & ";" & con.Inherit.Protocol & ";" & con.Inherit.PuttySession & ";" & con.Inherit.RedirectDiskDrives & ";" & con.Inherit.RedirectKeys & ";" & con.Inherit.RedirectPorts & ";" & con.Inherit.RedirectPrinters & ";" & con.Inherit.RedirectSmartCards & ";" & con.Inherit.RedirectSound & ";" & con.Inherit.Resolution & ";" & con.Inherit.UseConsoleSession & ";" & con.Inherit.RenderingEngine & ";" & con.Inherit.Username & ";" & con.Inherit.ICAEncryption & ";" & con.Inherit.RDPAuthenticationLevel & ";" & con.Inherit.PreExtApp & ";" & con.Inherit.PostExtApp & ";" & con.Inherit.MacAddress & ";" & con.Inherit.UserField & ";" & con.Inherit.ExtApp & ";" & con.Inherit.VNCCompression & ";" & con.Inherit.VNCEncoding & ";" & con.Inherit.VNCAuthMode & ";" & con.Inherit.VNCProxyType & ";" & con.Inherit.VNCProxyIP & ";" & con.Inherit.VNCProxyPort & ";" & con.Inherit.VNCProxyUsername & ";" & con.Inherit.VNCProxyPassword & ";" & con.Inherit.VNCColors & ";" & con.Inherit.VNCSmartSizeMode & ";" & con.Inherit.VNCViewOnly End If csvWr.WriteLine(csvLn) diff --git a/mRemoteV1/Connection/Connection.Info.vb b/mRemoteV1/Connection/Connection.Info.vb index ae71d70e5..5c81469c2 100644 --- a/mRemoteV1/Connection/Connection.Info.vb +++ b/mRemoteV1/Connection/Connection.Info.vb @@ -706,6 +706,33 @@ Namespace Connection Me._DisplayThemes = value End Set End Property + + Private _EnableFontSmoothing As Boolean = My.Settings.ConDefaultEnableFontSmoothing + _ + Public Property EnableFontSmoothing() As Boolean + Get + If Me._Inherit.EnableFontSmoothing And Me._Parent IsNot Nothing Then + Dim parCon As Connection.Info = TryCast(Me._Parent, Container.Info).ConnectionInfo + + If Me._IsContainer = True Then + Dim curCont As Container.Info = Me._Parent + Dim parCont As Container.Info = curCont.Parent + parCon = parCont.ConnectionInfo + End If + + Return parCon.EnableFontSmoothing + Else + Return Me._EnableFontSmoothing + End If + End Get + Set(ByVal value As Boolean) + Me._EnableFontSmoothing = value + End Set + End Property #End Region #Region "6 Redirect" Private _RedirectKeys As Boolean = My.Settings.ConDefaultRedirectKeys @@ -1957,6 +1984,21 @@ Namespace Connection Me._DisplayThemes = value End Set End Property + + Private _EnableFontSmoothing As Boolean = My.Settings.InhDefaultEnableFontSmoothing + _ + Public Property EnableFontSmoothing() As Boolean + Get + Return Me._EnableFontSmoothing + End Get + Set(ByVal value As Boolean) + Me._EnableFontSmoothing = value + End Set + End Property #End Region #Region "7 Redirect" Private _RedirectKeys As Boolean = My.Settings.InhDefaultRedirectKeys diff --git a/mRemoteV1/Connection/Connection.Protocol.RDP.vb b/mRemoteV1/Connection/Connection.Protocol.RDP.vb index cc09640f0..a8a60c0d7 100644 --- a/mRemoteV1/Connection/Connection.Protocol.RDP.vb +++ b/mRemoteV1/Connection/Connection.Protocol.RDP.vb @@ -334,7 +334,11 @@ Namespace Connection pFlags += Int(Connection.Protocol.RDP.RDPPerformanceFlags.DisableWallpaper) End If - RDP.AdvancedSettings2.PerformanceFlags = pFlags + If Me.Info.EnableFontSmoothing Then + pFlags += Int(Connection.Protocol.RDP.RDPPerformanceFlags.EnableFontSmoothing) + End If + + RDP.AdvancedSettings.PerformanceFlags = pFlags Catch ex As Exception mC.AddMessage(Messages.MessageClass.ErrorMsg, My.Resources.strRdpSetPerformanceFlagsFailed & vbNewLine & ex.Message, True) End Try @@ -431,17 +435,19 @@ Namespace Connection Private Enum RDPPerformanceFlags _ - DisableWallpaper = 1 + DisableWallpaper = &H1 _ - DisableFullWindowDrag = 2 + DisableFullWindowDrag = &H2 _ - DisableMenuAnimations = 4 + DisableMenuAnimations = &H4 _ - DisableThemes = 8 + DisableThemes = &H8 _ - DisableCursorShadow = 20 + DisableCursorShadow = &H20 _ - DisableCursorBlinking = 40 + DisableCursorBlinking = &H40 + _ + EnableFontSmoothing = &H80 End Enum Public Enum RDPResolutions diff --git a/mRemoteV1/Help/SQLScript.txt b/mRemoteV1/Help/SQLScript.txt index fbb1fc89e..e5041d34a 100644 --- a/mRemoteV1/Help/SQLScript.txt +++ b/mRemoteV1/Help/SQLScript.txt @@ -37,6 +37,7 @@ CREATE TABLE [dbo].[tblCons] ( [Resolution] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [DisplayWallpaper] [bit] NOT NULL , [DisplayThemes] [bit] NOT NULL , + [EnableFontSmoothing] [bit] NOT NULL , [CacheBitmaps] [bit] NOT NULL , [RedirectDiskDrives] [bit] NOT NULL , [RedirectPorts] [bit] NOT NULL , @@ -72,6 +73,7 @@ CREATE TABLE [dbo].[tblCons] ( [InheritDescription] [bit] NOT NULL , [InheritDisplayThemes] [bit] NOT NULL , [InheritDisplayWallpaper] [bit] NOT NULL , + [InheritEnableFontSmoothing] [bit] NOT NULL , [InheritDomain] [bit] NOT NULL , [InheritIcon] [bit] NOT NULL , [InheritPanel] [bit] NOT NULL , diff --git a/mRemoteV1/My Project/Resources.Designer.vb b/mRemoteV1/My Project/Resources.Designer.vb index 469f45d6a..f5a1058d5 100644 --- a/mRemoteV1/My Project/Resources.Designer.vb +++ b/mRemoteV1/My Project/Resources.Designer.vb @@ -3879,6 +3879,15 @@ Namespace My.Resources End Get End Property + ''' + ''' Looks up a localized string similar to Select whether to use font smoothing or not.. + ''' + Friend ReadOnly Property strPropertyDescriptionEnableFontSmoothing() As String + Get + Return ResourceManager.GetString("strPropertyDescriptionEnableFontSmoothing", resourceCulture) + End Get + End Property + ''' ''' Looks up a localized string similar to Select the encoding mode to be used.. ''' @@ -4302,6 +4311,15 @@ Namespace My.Resources End Get End Property + ''' + ''' Looks up a localized string similar to Font Smoothing. + ''' + Friend ReadOnly Property strPropertyNameEnableFontSmoothing() As String + Get + Return ResourceManager.GetString("strPropertyNameEnableFontSmoothing", resourceCulture) + End Get + End Property + ''' ''' Looks up a localized string similar to Encoding. ''' diff --git a/mRemoteV1/My Project/Resources.resx b/mRemoteV1/My Project/Resources.resx index 586483bb6..6eeb087a2 100644 --- a/mRemoteV1/My Project/Resources.resx +++ b/mRemoteV1/My Project/Resources.resx @@ -2307,4 +2307,10 @@ Error Description: {1} 32768 Colours (15-bit) + + Select whether to use font smoothing or not. + + + Font Smoothing + \ No newline at end of file diff --git a/mRemoteV1/My Project/Settings.Designer.vb b/mRemoteV1/My Project/Settings.Designer.vb index c27da1f76..229a4d951 100644 --- a/mRemoteV1/My Project/Settings.Designer.vb +++ b/mRemoteV1/My Project/Settings.Designer.vb @@ -2153,6 +2153,32 @@ Namespace My Me("ConDefaultRDGatewayDomain") = value End Set End Property + + _ + Public Property ConDefaultEnableFontSmoothing() As Boolean + Get + Return CType(Me("ConDefaultEnableFontSmoothing"),Boolean) + End Get + Set + Me("ConDefaultEnableFontSmoothing") = value + End Set + End Property + + _ + Public Property InhDefaultEnableFontSmoothing() As Boolean + Get + Return CType(Me("InhDefaultEnableFontSmoothing"),Boolean) + End Get + Set + Me("InhDefaultEnableFontSmoothing") = value + End Set + End Property End Class End Namespace diff --git a/mRemoteV1/My Project/Settings.settings b/mRemoteV1/My Project/Settings.settings index 62ab3db7f..d1147cdad 100644 --- a/mRemoteV1/My Project/Settings.settings +++ b/mRemoteV1/My Project/Settings.settings @@ -488,5 +488,11 @@ + + False + + + False + \ No newline at end of file diff --git a/mRemoteV1/UI/UI.Window.Config.vb b/mRemoteV1/UI/UI.Window.Config.vb index 0302f1094..3600940f8 100644 --- a/mRemoteV1/UI/UI.Window.Config.vb +++ b/mRemoteV1/UI/UI.Window.Config.vb @@ -542,6 +542,7 @@ Namespace UI strHide.Add("Colors") strHide.Add("DisplayThemes") strHide.Add("DisplayWallpaper") + strHide.Add("EnableFontSmoothing") strHide.Add("ExtApp") strHide.Add("ICAEncryption") strHide.Add("PuttySession") @@ -575,6 +576,7 @@ Namespace UI strHide.Add("Colors") strHide.Add("DisplayThemes") strHide.Add("DisplayWallpaper") + strHide.Add("EnableFontSmoothing") strHide.Add("Domain") strHide.Add("ExtApp") strHide.Add("ICAEncryption") @@ -610,6 +612,7 @@ Namespace UI strHide.Add("Colors") strHide.Add("DisplayThemes") strHide.Add("DisplayWallpaper") + strHide.Add("EnableFontSmoothing") strHide.Add("Domain") strHide.Add("ExtApp") strHide.Add("ICAEncryption") @@ -645,6 +648,7 @@ Namespace UI strHide.Add("Colors") strHide.Add("DisplayThemes") strHide.Add("DisplayWallpaper") + strHide.Add("EnableFontSmoothing") strHide.Add("Domain") strHide.Add("ExtApp") strHide.Add("ICAEncryption") @@ -682,6 +686,7 @@ Namespace UI strHide.Add("Colors") strHide.Add("DisplayThemes") strHide.Add("DisplayWallpaper") + strHide.Add("EnableFontSmoothing") strHide.Add("Domain") strHide.Add("ExtApp") strHide.Add("ICAEncryption") @@ -719,6 +724,7 @@ Namespace UI strHide.Add("Colors") strHide.Add("DisplayThemes") strHide.Add("DisplayWallpaper") + strHide.Add("EnableFontSmoothing") strHide.Add("Domain") strHide.Add("ExtApp") strHide.Add("ICAEncryption") @@ -756,6 +762,7 @@ Namespace UI strHide.Add("Colors") strHide.Add("DisplayThemes") strHide.Add("DisplayWallpaper") + strHide.Add("EnableFontSmoothing") strHide.Add("Domain") strHide.Add("ExtApp") strHide.Add("ICAEncryption") @@ -791,6 +798,7 @@ Namespace UI strHide.Add("Colors") strHide.Add("DisplayThemes") strHide.Add("DisplayWallpaper") + strHide.Add("EnableFontSmoothing") strHide.Add("Domain") strHide.Add("ExtApp") strHide.Add("ICAEncryption") @@ -823,6 +831,7 @@ Namespace UI Case mRemoteNG.Connection.Protocol.Protocols.ICA strHide.Add("DisplayThemes") strHide.Add("DisplayWallpaper") + strHide.Add("EnableFontSmoothing") strHide.Add("ExtApp") strHide.Add("Port") strHide.Add("PuttySession") @@ -857,6 +866,7 @@ Namespace UI strHide.Add("Colors") strHide.Add("DisplayThemes") strHide.Add("DisplayWallpaper") + strHide.Add("EnableFontSmoothing") strHide.Add("Domain") strHide.Add("ICAEncryption") strHide.Add("PuttySession") @@ -911,6 +921,10 @@ Namespace UI strHide.Add("DisplayWallpaper") End If + If .EnableFontSmoothing Then + strHide.Add("EnableFontSmoothing") + End If + If .Domain Then strHide.Add("Domain") End If diff --git a/mRemoteV1/app.config b/mRemoteV1/app.config index e06a944ad..5ae1d3405 100644 --- a/mRemoteV1/app.config +++ b/mRemoteV1/app.config @@ -542,6 +542,12 @@ + + False + + + False +