diff options
-rw-r--r-- | gm/thinrects.cpp | 2 | ||||
-rw-r--r-- | src/gpu/GrContext.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gm/thinrects.cpp b/gm/thinrects.cpp index 6ee9a759e6..7e30a20adf 100644 --- a/gm/thinrects.cpp +++ b/gm/thinrects.cpp @@ -53,7 +53,7 @@ protected: canvas->restore(); canvas->save(); - canvas->translate(160.0f + i*0.125f, + canvas->translate(160.0f + i*0.125f, i*40.0f + i*0.125f); DrawSquares(canvas, white); diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index 6b98d13028..068f32110e 100644 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -681,8 +681,8 @@ static void setStrokeRectStrip(GrPoint verts[10], GrRect rect, } static bool isIRect(const GrRect& r) { - return SkScalarIsInt(r.fLeft) && SkScalarIsInt(r.fTop) && - SkScalarIsInt(r.fRight) && SkScalarIsInt(r.fBottom); + return SkScalarIsInt(r.fLeft) && SkScalarIsInt(r.fTop) && + SkScalarIsInt(r.fRight) && SkScalarIsInt(r.fBottom); } static bool apply_aa_to_rect(GrDrawTarget* target, |