fix warnings (local storage too small, int->scalar)
git-svn-id: http://skia.googlecode.com/svn/trunk@957 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SampleLineClipper.cpp b/samplecode/SampleLineClipper.cpp
index 8e2d620..2635a30 100644
--- a/samplecode/SampleLineClipper.cpp
+++ b/samplecode/SampleLineClipper.cpp
@@ -88,7 +88,7 @@
SkEdgeClipper clipper;
if (clipper.clipQuad(src, clip)) {
- SkPoint pts[3];
+ SkPoint pts[4];
SkPath::Verb verb;
while ((verb = clipper.next(pts)) != SkPath::kDone_Verb) {
switch (verb) {
@@ -169,7 +169,8 @@
int x = (640 - W)/2;
int y = (480 - H)/2;
- fClip.set(x, y, x + W, y + H);
+ fClip.set(SkIntToScalar(x), SkIntToScalar(y),
+ SkIntToScalar(x + W), SkIntToScalar(y + H));
this->randPts();
}