Index: src/ports/SkScalerContext_win_dw.cpp |
diff --git a/src/ports/SkScalerContext_win_dw.cpp b/src/ports/SkScalerContext_win_dw.cpp |
index 33ef0d55ec29a3ee7b2efbc911cc98c5441faf6d..e72746a520e42b3093313940df64487de7f68d2b 100644 |
--- a/src/ports/SkScalerContext_win_dw.cpp |
+++ b/src/ports/SkScalerContext_win_dw.cpp |
@@ -524,7 +524,7 @@ void SkScalerContext_DW::generateFontMetrics(SkPaint::FontMetrics* metrics) { |
metrics->fFlags |= SkPaint::FontMetrics::kUnderlineThinknessIsValid_Flag; |
metrics->fFlags |= SkPaint::FontMetrics::kUnderlinePositionIsValid_Flag; |
- if (NULL != fTypeface->fDWriteFontFace1.get()) { |
+ if (fTypeface->fDWriteFontFace1.get()) { |
DWRITE_FONT_METRICS1 dwfm1; |
fTypeface->fDWriteFontFace1->GetMetrics(&dwfm1); |
metrics->fTop = -fTextSizeRender * SkIntToScalar(dwfm1.glyphBoxTop) / upem; |