Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: samplecode/SampleStringArt.cpp

Issue 24258003: Type warning fix for: Add string art GM and sample. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Missing nit Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/stringart.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleStringArt.cpp
diff --git a/samplecode/SampleStringArt.cpp b/samplecode/SampleStringArt.cpp
index c6547ed4fa8689788c061da75d8823aaef8bbd38..353d4cc957a8fb130ab9b288f06843fd2a930de4 100644
--- a/samplecode/SampleStringArt.cpp
+++ b/samplecode/SampleStringArt.cpp
@@ -37,7 +37,7 @@ protected:
SkPath path;
path.moveTo(center);
- while (length < (SkScalarHalf(SkMin32(this->width(), this->height())) - 10.f))
+ while (length < (SkScalarHalf(SkMinScalar(this->width(), this->height())) - 10.f))
{
SkPoint rp = SkPoint::Make(length*SkScalarCos(step) + center.fX,
length*SkScalarSin(step) + center.fY);
« no previous file with comments | « gm/stringart.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698