[PDF] Bug fix - missing last odd column in 4444 bitmaps.

Review URL: http://codereview.appspot.com/4212044

git-svn-id: http://skia.googlecode.com/svn/trunk@853 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
vandebo@chromium.org 2011-02-24 21:51:13 +00:00
parent d90c141feb
commit 8ab3e0f07f

View File

@ -92,11 +92,13 @@ void extractImageData(const SkBitmap& bitmap, const SkIRect& srcRect,
dst[0] = (SkGetPackedR4444(src[x]) << 4) |
SkGetPackedG4444(src[x]);
dst[1] = (SkGetPackedB4444(src[x]) << 4);
dst += 2;
alphaDst[0] = (SkGetPackedA4444(src[x]) << 4);
if (alphaDst[0] != 0xF0)
hasAlpha = true;
if (alphaDst[0] & 0xF0)
isTransparent = false;
alphaDst++;
}
}
break;