aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleText.cpp
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2016-10-18 14:42:44 -0400
committerGravatar Mike Klein <mtklein@google.com>2016-10-18 18:53:30 +0000
commit16adfa39330b7b1c6ac16b8127843e55f4233a29 (patch)
tree982debdfd67ed9a3005ebb43927d8338f0712faa /samplecode/SampleText.cpp
parente719577fe8ac3de38795cde2007337f854d97435 (diff)
Viewer builds (for Windows) with GN
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3599 Change-Id: Id6a142f90f544bef266d78e385f22e17288d5064 Reviewed-on: https://skia-review.googlesource.com/3599 Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'samplecode/SampleText.cpp')
-rw-r--r--samplecode/SampleText.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/samplecode/SampleText.cpp b/samplecode/SampleText.cpp
index ca09cc749a..730c47ce98 100644
--- a/samplecode/SampleText.cpp
+++ b/samplecode/SampleText.cpp
@@ -47,7 +47,8 @@ static void DrawTheText(SkCanvas* canvas, const char text[], size_t length, SkSc
SkScalar xpos = x;
SkASSERT(length <= SK_ARRAY_COUNT(pts));
for (size_t i = 0; i < length; i++) {
- pts[i].set(xpos, y), xpos += paint.getTextSize();
+ pts[i].set(xpos, y);
+ xpos += paint.getTextSize();
}
canvas->drawPosText(text, length, pts, paint);
}