aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/imageblur2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/imageblur2.cpp')
-rw-r--r--gm/imageblur2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/imageblur2.cpp b/gm/imageblur2.cpp
index 480f09390f..58e40961e4 100644
--- a/gm/imageblur2.cpp
+++ b/gm/imageblur2.cpp
@@ -64,7 +64,8 @@ protected:
SkRandom rand;
SkPaint textPaint;
textPaint.setAntiAlias(false);
- textPaint.setColor(rand.nextBits(24) | 0xFF000000);
+ textPaint.setColor(sk_tool_utils::color_to_565(rand.nextBits(24) | 0xFF000000));
+ sk_tool_utils::set_portable_typeface(&textPaint);
textPaint.setTextSize(textSize);
for (int i = 0; i < testStringCount; i++) {