Index: gm/imagemagnifier.cpp |
diff --git a/gm/imagemagnifier.cpp b/gm/imagemagnifier.cpp |
index 5e4835033a548fab729f3dab2c30b7f767ad544a..2e739cf38e3116c4616f2a18903128d315fbddbc 100644 |
--- a/gm/imagemagnifier.cpp |
+++ b/gm/imagemagnifier.cpp |
@@ -45,8 +45,8 @@ protected: |
int x = rand.nextULessThan(WIDTH); |
int y = rand.nextULessThan(HEIGHT); |
SkPaint paint; |
- sk_tool_utils::set_portable_typeface(&paint); |
- paint.setColor(rand.nextBits(24) | 0xFF000000); |
+ sk_tool_utils::set_portable_typeface_always(&paint); |
+ paint.setColor(sk_tool_utils::color_to_565(rand.nextBits(24) | 0xFF000000)); |
paint.setTextSize(rand.nextRangeScalar(0, 300)); |
paint.setAntiAlias(true); |
canvas->drawText(str, strlen(str), SkIntToScalar(x), |