Added 15-bit color option for RDP. Fixed the description for 32-bit color (8 bits are not used so it's the same number of colors as 24-bit).

This commit is contained in:
Riley McArdle
2011-05-25 19:06:16 -05:00
parent 2b1732d061
commit ec850f6c15
9 changed files with 34 additions and 5 deletions

View File

@@ -886,6 +886,8 @@ Namespace App
Select Case pValue
Case 8
nConI.Colors = Connection.Protocol.RDP.RDPColors.Colors256
Case 15
nConI.Colors = Connection.Protocol.RDP.RDPColors.Colors15Bit
Case 16
nConI.Colors = Connection.Protocol.RDP.RDPColors.Colors16Bit
Case 24

View File

@@ -879,6 +879,8 @@ Namespace Config
conI.Colors = Connection.Protocol.RDP.RDPColors.Colors24Bit
Case 3
conI.Colors = Connection.Protocol.RDP.RDPColors.Colors32Bit
Case 4
conI.Colors = Connection.Protocol.RDP.RDPColors.Colors15Bit
End Select
conI.RedirectSound = .Attributes("RedirectSound").Value

View File

@@ -168,6 +168,8 @@ Namespace Connection
Select Case Info.Colors
Case RDP.RDPColors.Colors256
ICA.SetProp("DesiredColor", 2)
Case RDP.RDPColors.Colors15Bit
ICA.SetProp("DesiredColor", 4)
Case RDP.RDPColors.Colors16Bit
ICA.SetProp("DesiredColor", 4)
Case Else

View File

@@ -410,6 +410,8 @@ Namespace Connection
Public Enum RDPColors
<LocalizedDescription("strRDP256Colors")> _
Colors256 = 8
<LocalizedDescription("strRDP32768Colors")> _
Colors15Bit = 15
<LocalizedDescription("strRDP65536Colors")> _
Colors16Bit = 16
<LocalizedDescription("strRDP16777216Colors")> _

View File

@@ -1392,7 +1392,7 @@ mRemoteNG wird nun geschlossen und die Installation gestartet.</value>
<value>16777216 Farben (24Bit)</value>
</data>
<data name="strRDP4294967296Colors" xml:space="preserve">
<value>4294967296 Farben (32Bit)</value>
<value>16777216 Farben (32Bit)</value>
</data>
<data name="strRDPDisableWallpaper" xml:space="preserve">
<value>Entferne Hintergrundbild</value>
@@ -1957,4 +1957,7 @@ Fehler Beschreibung: {1}</value>
<data name="strGeneral" xml:space="preserve">
<value>Allgemein</value>
</data>
<data name="strRDP32768Colors" xml:space="preserve">
<value>32768 Farben (15Bit)</value>
</data>
</root>

View File

@@ -142,9 +142,12 @@
<value>256 Colors (8-bit)</value>
</data>
<data name="strRDP4294967296Colors" xml:space="preserve">
<value>4294967296 Colors (32-bit)</value>
<value>16777216 Colors (32-bit)</value>
</data>
<data name="strRDP65536Colors" xml:space="preserve">
<value>65536 Colors (16-bit)</value>
</data>
<data name="strRDP32768Colors" xml:space="preserve">
<value>32768 Colors (15-bit)</value>
</data>
</root>

View File

@@ -1108,7 +1108,7 @@
<value>16777216 couleurs (24 bits)</value>
</data>
<data name="strRDP4294967296Colors" xml:space="preserve">
<value>4294967296 couleurs (32 bits)</value>
<value>16777216 couleurs (32 bits)</value>
</data>
<data name="strRDPDisableWallpaper" xml:space="preserve">
<value>Désactiver papier peint</value>
@@ -1416,4 +1416,7 @@
<data name="strAskUpdatesMainInstruction" xml:space="preserve">
<value>Paramètres de mise à jour automatique</value>
</data>
<data name="strRDP32768Colors" xml:space="preserve">
<value>32768 couleurs (15 bits)</value>
</data>
</root>

View File

@@ -4882,7 +4882,16 @@ Namespace My.Resources
End Property
'''<summary>
''' Looks up a localized string similar to 4294967296 Colours (32-bit).
''' Looks up a localized string similar to 32768 Colours (15-bit).
'''</summary>
Friend ReadOnly Property strRDP32768Colors() As String
Get
Return ResourceManager.GetString("strRDP32768Colors", resourceCulture)
End Get
End Property
'''<summary>
''' Looks up a localized string similar to 16777216 Colours (32-bit).
'''</summary>
Friend ReadOnly Property strRDP4294967296Colors() As String
Get

View File

@@ -1709,7 +1709,7 @@ mRemoteNG will now quit and begin with the installation.</value>
<value>16777216 Colours (24-bit)</value>
</data>
<data name="strRDP4294967296Colors" xml:space="preserve">
<value>4294967296 Colours (32-bit)</value>
<value>16777216 Colours (32-bit)</value>
</data>
<data name="strRDPDisableWallpaper" xml:space="preserve">
<value>Disable Wallpaper</value>
@@ -2304,4 +2304,7 @@ Error Description: {1}</value>
<data name="strAskUpdatesMainInstruction" xml:space="preserve">
<value>Automatic update settings</value>
</data>
<data name="strRDP32768Colors" xml:space="preserve">
<value>32768 Colours (15-bit)</value>
</data>
</root>