Index: src/ports/SkFontHost_win_dw.cpp |
diff --git a/src/ports/SkFontHost_win_dw.cpp b/src/ports/SkFontHost_win_dw.cpp |
index a3d1d17104480cad6945b149f63345f771a884f5..89e85b73a021595cb752ea9802e76fcf35325630 100644 |
--- a/src/ports/SkFontHost_win_dw.cpp |
+++ b/src/ports/SkFontHost_win_dw.cpp |
@@ -1378,10 +1378,10 @@ void DWriteFontTypeface::onFilterRec(SkScalerContext::Rec* rec) const { |
SkTScopedComPtr<IDWriteRenderingParams> defaultRenderingParams; |
if (SUCCEEDED(factory->CreateRenderingParams(&defaultRenderingParams))) { |
float gamma = defaultRenderingParams->GetGamma(); |
- rec->setDeviceGamma(SkFloatToScalar(gamma)); |
- rec->setPaintGamma(SkFloatToScalar(gamma)); |
+ rec->setDeviceGamma(gamma); |
+ rec->setPaintGamma(gamma); |
- rec->setContrast(SkFloatToScalar(defaultRenderingParams->GetEnhancedContrast())); |
+ rec->setContrast(defaultRenderingParams->GetEnhancedContrast()); |
} |
} |
#endif |