aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFGraphicState.cpp
diff options
context:
space:
mode:
authorGravatar vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-01-05 18:45:27 +0000
committerGravatar vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-01-05 18:45:27 +0000
commit663515bc59325092c4e47f5189782bd6fcd0586a (patch)
treef59d47e2b37bdaf9212114c6bdcee9b979f503d7 /src/pdf/SkPDFGraphicState.cpp
parentb3a39b5b017eeb8a37ce5cb29c6e9b00d649d11b (diff)
[PDF] Fix some scalar/int assumptions.
Review URL: http://codereview.appspot.com/5516043 git-svn-id: http://skia.googlecode.com/svn/trunk@2975 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/pdf/SkPDFGraphicState.cpp')
-rw-r--r--src/pdf/SkPDFGraphicState.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf/SkPDFGraphicState.cpp b/src/pdf/SkPDFGraphicState.cpp
index d128630a58..ad3f57b822 100644
--- a/src/pdf/SkPDFGraphicState.cpp
+++ b/src/pdf/SkPDFGraphicState.cpp
@@ -200,7 +200,7 @@ void SkPDFGraphicState::populateDict() {
insertName("Type", "ExtGState");
SkRefPtr<SkPDFScalar> alpha =
- new SkPDFScalar(fPaint.getAlpha() * SkScalarInvert(0xFF));
+ new SkPDFScalar(SkScalarDiv(fPaint.getAlpha(), 0xFF));
alpha->unref(); // SkRefPtr and new both took a reference.
insert("CA", alpha.get());
insert("ca", alpha.get());