Index: samplecode/SampleTinyBitmap.cpp |
diff --git a/samplecode/SampleTinyBitmap.cpp b/samplecode/SampleTinyBitmap.cpp |
index 42866d07adfe6b370e7be9f4430fbfbfb6631dbd..dc7157ff99656c2bb135629dc626ffe8ddf93556 100644 |
--- a/samplecode/SampleTinyBitmap.cpp |
+++ b/samplecode/SampleTinyBitmap.cpp |
@@ -57,9 +57,8 @@ 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 |
- // TODO - I think we just want to not allow this anymore |
SkColorTable* ctable = bm->getColorTable(); |
if (ctable) { |
ctable->setIsOpaque(isOpaque); |