Fix Win warning-as-error.
TBR=edisonn BUG= Review URL: https://codereview.chromium.org/27391002 git-svn-id: http://skia.googlecode.com/svn/trunk@11783 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
01bdf3c568
commit
bc386ce0f7
@ -65,7 +65,7 @@ protected:
|
||||
|
||||
void drawClippedBitmap(SkCanvas* canvas, int x, int y, const SkPaint& paint) {
|
||||
canvas->save();
|
||||
canvas->translate(x, y);
|
||||
canvas->translate(SkIntToScalar(x), SkIntToScalar(y));
|
||||
canvas->clipRect(SkRect::MakeWH(SkIntToScalar(fBitmap.width()), SkIntToScalar(fBitmap.height())));
|
||||
canvas->drawBitmap(fBitmap, 0, 0, &paint);
|
||||
canvas->restore();
|
||||
|
Loading…
Reference in New Issue
Block a user