summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authordmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-04 16:23:22 +0000
committerdmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-04 16:23:22 +0000
commite86bc2cad569eee167fd03a15198d2b8a61ed6c6 (patch)
tree3e4956973052bb5845ea0d1094701da4c194679c /remoting
parentd3d30b5fcfde2646353179ea178ccf6c1b4ee862 (diff)
downloadchromium_src-e86bc2cad569eee167fd03a15198d2b8a61ed6c6.zip
chromium_src-e86bc2cad569eee167fd03a15198d2b8a61ed6c6.tar.gz
chromium_src-e86bc2cad569eee167fd03a15198d2b8a61ed6c6.tar.bz2
Make windows capturer work on odd screen resolutions.
Windows capturer would crash if screen resolution width was not a multiple of 4. BUG=98973 TEST=See bug Review URL: http://codereview.chromium.org/8113026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103914 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r--remoting/host/capturer_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/host/capturer_win.cc b/remoting/host/capturer_win.cc
index b92459f..cdb84cb 100644
--- a/remoting/host/capturer_win.cc
+++ b/remoting/host/capturer_win.cc
@@ -219,7 +219,7 @@ void CapturerGdi::ReallocateBuffer(int buffer_index, const SkISize& size) {
BITMAPINFO bmi;
memset(&bmi, 0, sizeof(bmi));
bmi.bmiHeader.biHeight = -size.height();
- bmi.bmiHeader.biWidth = size.width();
+ bmi.bmiHeader.biWidth = rounded_width;
bmi.bmiHeader.biPlanes = 1;
bmi.bmiHeader.biBitCount = kBytesPerPixel * 8;
bmi.bmiHeader.biSize = sizeof(bmi.bmiHeader);