| Index: remoting/host/capturer_gdi.cc
|
| diff --git a/remoting/host/capturer_gdi.cc b/remoting/host/capturer_gdi.cc
|
| index 45e52242abc7b3722eabd543d527280e78f12dc4..3b5a84416d707be1dbb05b06aa630dc8a63f7402 100644
|
| --- a/remoting/host/capturer_gdi.cc
|
| +++ b/remoting/host/capturer_gdi.cc
|
| @@ -66,15 +66,11 @@ void CapturerGdi::GetDataStride(int strides[]) const {
|
| }
|
|
|
| int CapturerGdi::GetWidth() const {
|
| - if (!width_)
|
| - width_ = GetSystemMetrics(SM_CXSCREEN);
|
| - return width_;
|
| + return GetSystemMetrics(SM_CXSCREEN);
|
| }
|
|
|
| int CapturerGdi::GetHeight() const {
|
| - if (!height_)
|
| - height_ = GetSystemMetrics(SM_CYSCREEN);
|
| - return height_;
|
| + return GetSystemMetrics(SM_CYSCREEN);
|
| }
|
|
|
| // TODO(fbarchard): handle error cases.
|
|
|