Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(422)

Unified Diff: remoting/host/capturer_gdi.cc

Issue 2771007: Fix chromoting windows build (Closed)
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/client_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/capturer_gdi.cc
diff --git a/remoting/host/capturer_gdi.cc b/remoting/host/capturer_gdi.cc
index af32f9b479b3dea3e63ac297bc343c496aae1fb8..35a8c4311e30043bb251209a500704eac82c0c40 100644
--- a/remoting/host/capturer_gdi.cc
+++ b/remoting/host/capturer_gdi.cc
@@ -11,7 +11,7 @@ namespace remoting {
// 3780 pixels per meter is equivalent to 96 DPI, typical on desktop monitors.
static const int kPixelsPerMeter = 3780;
// 24 bit RGB is 3 bytes per pixel.
-static const int kBytesPerPixel = 3;
+static const int kBytesPerPixel = 4;
CapturerGdi::CapturerGdi()
: initialized_(false) {
@@ -84,7 +84,7 @@ void CapturerGdi::InitializeBuffers() {
int rounded_width = (width_ + 3) & (~3);
// Dimensions of screen.
- pixel_format_ = PixelFormatRgb24;
+ pixel_format_ = PixelFormatRgb32;
bytes_per_pixel_ = kBytesPerPixel;
bytes_per_row_ = rounded_width * bytes_per_pixel_;
« no previous file with comments | « remoting/client/client_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698