fix warnings (local storage too small, int->scalar)
git-svn-id: http://skia.googlecode.com/svn/trunk@957 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
97fa34c5f0
commit
4b0f0b2758
@ -88,7 +88,7 @@ static void quad_clipper(const SkPoint src[], const SkRect& clip,
|
||||
|
||||
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 @@ public:
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user