Index: src/pdf/SkPDFGraphicState.cpp |
diff --git a/src/pdf/SkPDFGraphicState.cpp b/src/pdf/SkPDFGraphicState.cpp |
index d063c1505ec4d2d899cad3016ac76e7d867648b5..6cf66456ab2a47a75340193cb82e4ec08cf9dd08 100644 |
--- a/src/pdf/SkPDFGraphicState.cpp |
+++ b/src/pdf/SkPDFGraphicState.cpp |
@@ -201,7 +201,7 @@ void SkPDFGraphicState::emitObject(SkWStream* stream, |
SkAutoTUnref<SkPDFDict> dict(SkNEW_ARGS(SkPDFDict, ("ExtGState"))); |
dict->insertName("Type", "ExtGState"); |
- SkScalar alpha = SkScalarDiv(fAlpha, 0xFF); |
+ SkScalar alpha = SkIntToScalar(fAlpha) / 0xFF; |
dict->insertScalar("CA", alpha); |
dict->insertScalar("ca", alpha); |