diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-04 02:19:17 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-04 02:19:17 +0000 |
commit | 47277234210e887a9cbf082ffbaa41fb001659e4 (patch) | |
tree | f3181b9a3531da63d5165ea8807ce5685f21e68e /remoting | |
parent | 095079273cfaea72f9d5d78218fd9a2a62d78ca3 (diff) | |
download | chromium_src-47277234210e887a9cbf082ffbaa41fb001659e4.zip chromium_src-47277234210e887a9cbf082ffbaa41fb001659e4.tar.gz chromium_src-47277234210e887a9cbf082ffbaa41fb001659e4.tar.bz2 |
Fix a typo in Chromoting linux capturer code
Linux capturer code has a type which causes artifacts in the image.
BUG=71697
TEST=None
Review URL: http://codereview.chromium.org/6312131
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73741 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/host/capturer_linux.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/host/capturer_linux.cc b/remoting/host/capturer_linux.cc index f34c0ad..8c1e74c 100644 --- a/remoting/host/capturer_linux.cc +++ b/remoting/host/capturer_linux.cc @@ -256,7 +256,7 @@ void CapturerLinuxPimpl::CaptureRects( for (InvalidRects::const_iterator it = last_invalid_rects_.begin(); last_buffer_ && it != last_invalid_rects_.end(); ++it) { - int offset = it->y() * stride_ + it->x() + kBytesPerPixel; + int offset = it->y() * stride_ + it->x() * kBytesPerPixel; for (int i = 0; i < it->height(); ++i) { memcpy(buffer + offset, last_buffer_ + offset, it->width() * kBytesPerPixel); |