diff options
Diffstat (limited to 'remoting/client/simple_client.cc')
-rw-r--r-- | remoting/client/simple_client.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/remoting/client/simple_client.cc b/remoting/client/simple_client.cc index 98074bf..d1dd6e2 100644 --- a/remoting/client/simple_client.cc +++ b/remoting/client/simple_client.cc @@ -86,9 +86,13 @@ class SimpleHostEventCallback : public HostConnection::HostEventCallback { void HandleUpdateStreamPacketMessage(HostMessage* host_msg) { const UpdateStreamPacketMessage& msg = host_msg->update_stream_packet(); - std::cout << "UpdateStreamPacket (" << msg.header().x() - << ", " << msg.header().y() << ") [" - << msg.header().width() << " x " << msg.header().height() << "]" + if (!msg.has_begin_rect()) + return; + + std::cout << "UpdateStreamPacket (" << msg.begin_rect().x() + << ", " << msg.begin_rect().y() << ") [" + << msg.begin_rect().width() << " x " + << msg.begin_rect().height() << "]" << std::endl; } |