summaryrefslogtreecommitdiffstats
path: root/remoting/host/chromoting_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/chromoting_host.cc')
-rw-r--r--remoting/host/chromoting_host.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index 5b2a21d..9522b5c 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -299,10 +299,9 @@ void ChromotingHost::OnNewClientSession(
return;
}
- // TODO(simonmorris): The resolution is set in the video stream now,
- // so it doesn't need to be set here.
*protocol_config_->mutable_initial_resolution() =
- protocol::ScreenResolution(2048, 2048);
+ protocol::ScreenResolution(desktop_environment_->capturer()->width(),
+ desktop_environment_->capturer()->height());
// TODO(sergeyu): Respect resolution requested by the client if supported.
protocol::SessionConfig* config = protocol_config_->Select(
session->candidate_config(), true /* force_host_resolution */);