aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/gammatext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/gammatext.cpp')
-rw-r--r--gm/gammatext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/gammatext.cpp b/gm/gammatext.cpp
index 7ee55db2fb..f520754123 100644
--- a/gm/gammatext.cpp
+++ b/gm/gammatext.cpp
@@ -40,7 +40,7 @@ static bool setFont(SkPaint* paint, const char name[]) {
static CGContextRef makeCG(const SkImageInfo& info, const void* addr,
size_t rowBytes) {
- if (kPMColor_SkColorType != info.colorType() || NULL == addr) {
+ if (kN32_SkColorType != info.colorType() || NULL == addr) {
return NULL;
}
CGColorSpaceRef space = CGColorSpaceCreateDeviceRGB();