Index: samplecode/SampleDitherBitmap.cpp |
diff --git a/samplecode/SampleDitherBitmap.cpp b/samplecode/SampleDitherBitmap.cpp |
index 7f29305a51a58fced0242cb0fdb8fda3c23f731f..9132ceb1953d9ac3479aa7a2b4f033d4104bd8af 100644 |
--- a/samplecode/SampleDitherBitmap.cpp |
+++ b/samplecode/SampleDitherBitmap.cpp |
@@ -100,7 +100,7 @@ protected: |
static void setBitmapOpaque(SkBitmap* bm, bool isOpaque) { |
SkAutoLockPixels alp(*bm); // needed for ctable |
- bm->setIsOpaque(isOpaque); |
+ bm->setAlphaType(isOpaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType); |
#if 0 |
SkColorTable* ctable = bm->getColorTable(); |
if (ctable) { |