summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authoralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-19 21:41:19 +0000
committeralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-19 21:41:19 +0000
commit3ad82a76ec56db799a3d9e66137d6a7474e3286d (patch)
tree90c90c1be9de9df83ad93bb2d362c5d9dee5dafc /remoting
parent509ad1a9914f16894faaa6961a2a6f2370102037 (diff)
downloadchromium_src-3ad82a76ec56db799a3d9e66137d6a7474e3286d.zip
chromium_src-3ad82a76ec56db799a3d9e66137d6a7474e3286d.tar.gz
chromium_src-3ad82a76ec56db799a3d9e66137d6a7474e3286d.tar.bz2
Enable 32-bit color, enhanced graphics, font smoothing and desktop composition in RDP sessions.
BUG=218858 Review URL: https://chromiumcodereview.appspot.com/12620029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189118 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r--remoting/host/win/rdp_client_window.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/remoting/host/win/rdp_client_window.cc b/remoting/host/win/rdp_client_window.cc
index 1bd7f43..6d5ad6b 100644
--- a/remoting/host/win/rdp_client_window.cc
+++ b/remoting/host/win/rdp_client_window.cc
@@ -4,6 +4,8 @@
#include "remoting/host/win/rdp_client_window.h"
+#include <wtsdefs.h>
+
#include "base/logging.h"
#include "base/utf_string_conversions.h"
#include "base/win/scoped_bstr.h"
@@ -101,6 +103,11 @@ LRESULT RdpClientWindow::OnCreate(CREATESTRUCT* create_struct) {
if (FAILED(result))
goto done;
+ // Use 32-bit color.
+ result = client_->put_ColorDepth(32);
+ if (FAILED(result))
+ goto done;
+
// Set dimensions of the remote desktop.
result = client_->put_DesktopWidth(screen_size_.width());
if (FAILED(result))
@@ -151,6 +158,14 @@ LRESULT RdpClientWindow::OnCreate(CREATESTRUCT* create_struct) {
if (FAILED(result))
goto done;
+ // Enable enhanced graphics, font smoothing and desktop composition.
+ const LONG kDesiredFlags = WTS_PERF_ENABLE_ENHANCED_GRAPHICS |
+ WTS_PERF_ENABLE_FONT_SMOOTHING |
+ WTS_PERF_ENABLE_DESKTOP_COMPOSITION;
+ result = client_settings_->put_PerformanceFlags(kDesiredFlags);
+ if (FAILED(result))
+ goto done;
+
// Set the port to connect to.
result = client_settings_->put_RDPPort(server_endpoint_.port());
if (FAILED(result))