[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:
parent
d90c141feb
commit
8ab3e0f07f
@ -92,11 +92,13 @@ void extractImageData(const SkBitmap& bitmap, const SkIRect& srcRect,
|
|||||||
dst[0] = (SkGetPackedR4444(src[x]) << 4) |
|
dst[0] = (SkGetPackedR4444(src[x]) << 4) |
|
||||||
SkGetPackedG4444(src[x]);
|
SkGetPackedG4444(src[x]);
|
||||||
dst[1] = (SkGetPackedB4444(src[x]) << 4);
|
dst[1] = (SkGetPackedB4444(src[x]) << 4);
|
||||||
|
dst += 2;
|
||||||
alphaDst[0] = (SkGetPackedA4444(src[x]) << 4);
|
alphaDst[0] = (SkGetPackedA4444(src[x]) << 4);
|
||||||
if (alphaDst[0] != 0xF0)
|
if (alphaDst[0] != 0xF0)
|
||||||
hasAlpha = true;
|
hasAlpha = true;
|
||||||
if (alphaDst[0] & 0xF0)
|
if (alphaDst[0] & 0xF0)
|
||||||
isTransparent = false;
|
isTransparent = false;
|
||||||
|
alphaDst++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user