Index: src/ports/SkImageDecoder_WIC.cpp |
=================================================================== |
--- src/ports/SkImageDecoder_WIC.cpp (revision 11775) |
+++ src/ports/SkImageDecoder_WIC.cpp (working copy) |
@@ -231,7 +231,7 @@ |
if (SUCCEEDED(hr)) { |
SkAutoLockPixels alp(*bm); |
bm->eraseColor(SK_ColorTRANSPARENT); |
- const UINT stride = bm->rowBytes(); |
+ const UINT stride = (UINT) bm->rowBytes(); |
hr = piBitmapSourceConverted->CopyPixels( |
NULL, //Get all the pixels |
stride, |
@@ -414,7 +414,7 @@ |
//Write the pixels into the frame. |
if (SUCCEEDED(hr)) { |
SkAutoLockPixels alp(*bitmap); |
- const UINT stride = bitmap->rowBytes(); |
+ const UINT stride = (UINT) bitmap->rowBytes(); |
hr = piBitmapFrameEncode->WritePixels( |
height |
, stride |