Chromium Code Reviews| Index: remoting/client/plugin/chromoting_instance.cc |
| diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc |
| index e3a63e6d81c71039358985bd150c2c46eee2a719..08274174b4a9b60f78210d2fe27ac8702d625fd3 100644 |
| --- a/remoting/client/plugin/chromoting_instance.cc |
| +++ b/remoting/client/plugin/chromoting_instance.cc |
| @@ -811,15 +811,15 @@ void ChromotingInstance::HandleNotifyClientResolution( |
| } |
| protocol::ClientResolution client_resolution; |
| - client_resolution.set_width(width); |
| - client_resolution.set_height(height); |
| client_resolution.set_x_dpi(x_dpi); |
| client_resolution.set_y_dpi(y_dpi); |
| - |
| - // Include the legacy width & height in DIPs for use by older hosts. |
| client_resolution.set_dips_width((width * kDefaultDPI) / x_dpi); |
| client_resolution.set_dips_height((height * kDefaultDPI) / y_dpi); |
| + // Include the legacy width & height in DIPs for use by older hosts. |
|
Jamie
2016/05/31 20:40:47
s/DIPs/device pixels/
Sergey Ulanov
2016/06/01 10:08:50
Done.
|
| + client_resolution.set_width_deprecated(width); |
| + client_resolution.set_height_deprecated(height); |
| + |
| client_->host_stub()->NotifyClientResolution(client_resolution); |
| } |