Index: src/utils/SkUnitMappers.cpp |
diff --git a/src/utils/SkUnitMappers.cpp b/src/utils/SkUnitMappers.cpp |
index 5976e9de52ed5c3c9e1a2bd098932632efc3f583..f86a4542db8cd3957a224d8bb0d374b562c240c2 100644 |
--- a/src/utils/SkUnitMappers.cpp |
+++ b/src/utils/SkUnitMappers.cpp |
@@ -8,6 +8,7 @@ |
#include "SkUnitMappers.h" |
#include "SkFlattenableBuffers.h" |
+ |
SkDiscreteMapper::SkDiscreteMapper(int segments) { |
if (segments < 2) { |
fSegments = 0; |
@@ -17,7 +18,7 @@ SkDiscreteMapper::SkDiscreteMapper(int segments) { |
segments = 0xFFFF; |
} |
fSegments = segments; |
- fScale = SK_Fract1 / (segments - 1); |
+ fScale = (1 << 30) / (segments - 1); |
} |
} |