Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index cb8ac7231b29a9728dcf0d4804c6660c40291a04..f950e28cdccb2ca6b3a8a57ee9dc387621172f16 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -341,7 +341,7 @@ void SkBitmap::updatePixelsFromRef() const { |
void* p = fPixelRef->pixels(); |
if (NULL != p) { |
p = (char*)p |
- + fPixelRef->rowBytes() * fPixelRefOrigin.fY |
+ + fPixelRefOrigin.fY * fRowBytes |
+ fPixelRefOrigin.fX * fBytesPerPixel; |
} |
fPixels = p; |