mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
minor cleanup
This commit is contained in:
@@ -7,12 +7,21 @@ namespace mRemoteNG.Connection.Protocol.RDP
|
||||
[Description("strRDPDisableWallpaper")]
|
||||
DisableWallpaper = 0x1,
|
||||
|
||||
// [Description("strRDPDisableFullWindowdrag")]DisableFullWindowDrag = 0x2,
|
||||
// [Description("strRDPDisableMenuAnimations")]DisableMenuAnimations = 0x4,
|
||||
[Description("strRDPDisableThemes")] DisableThemes = 0x8,
|
||||
// [Description("strRDPDisableFullWindowdrag")]
|
||||
// DisableFullWindowDrag = 0x2,
|
||||
|
||||
// [Description("strRDPDisableMenuAnimations")]
|
||||
// DisableMenuAnimations = 0x4,
|
||||
|
||||
[Description("strRDPDisableThemes")]
|
||||
DisableThemes = 0x8,
|
||||
|
||||
// [Description("strRDPDisableCursorShadow")]
|
||||
// DisableCursorShadow = 0x20,
|
||||
|
||||
// [Description("strRDPDisableCursorblinking")]
|
||||
// DisableCursorBlinking = 0x40,
|
||||
|
||||
// [Description("strRDPDisableCursorShadow")]DisableCursorShadow = 0x20,
|
||||
// [Description("strRDPDisableCursorblinking")]DisableCursorBlinking = 0x40,
|
||||
[Description("strRDPEnableFontSmoothing")]
|
||||
EnableFontSmoothing = 0x80,
|
||||
|
||||
|
||||
@@ -592,22 +592,22 @@ namespace mRemoteNG.Connection.Protocol.RDP
|
||||
var pFlags = 0;
|
||||
if (connectionInfo.DisplayThemes == false)
|
||||
{
|
||||
pFlags += Convert.ToInt32(RDPPerformanceFlags.DisableThemes);
|
||||
pFlags += (int)RDPPerformanceFlags.DisableThemes;
|
||||
}
|
||||
|
||||
if (connectionInfo.DisplayWallpaper == false)
|
||||
{
|
||||
pFlags += Convert.ToInt32(RDPPerformanceFlags.DisableWallpaper);
|
||||
pFlags += (int)RDPPerformanceFlags.DisableWallpaper;
|
||||
}
|
||||
|
||||
if (connectionInfo.EnableFontSmoothing)
|
||||
{
|
||||
pFlags += Convert.ToInt32(RDPPerformanceFlags.EnableFontSmoothing);
|
||||
pFlags += (int)RDPPerformanceFlags.EnableFontSmoothing;
|
||||
}
|
||||
|
||||
if (connectionInfo.EnableDesktopComposition)
|
||||
{
|
||||
pFlags += Convert.ToInt32(RDPPerformanceFlags.EnableDesktopComposition);
|
||||
pFlags += (int)RDPPerformanceFlags.EnableDesktopComposition;
|
||||
}
|
||||
|
||||
_rdpClient.AdvancedSettings2.PerformanceFlags = pFlags;
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
using System.Windows.Forms;
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using AxMSTSCLib;
|
||||
using mRemoteNG.App;
|
||||
using MSTSCLib;
|
||||
|
||||
namespace mRemoteNG.Connection.Protocol.RDP
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user