fix float->int warning

git-svn-id: http://skia.googlecode.com/svn/trunk@870 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-03-01 15:15:13 +00:00
parent ea282db262
commit f9bb7a8e20

View File

@ -124,7 +124,9 @@ bool SkWindow::handleInval(const SkRect* localR)
fMatrix.mapRect(&devR, *localR);
devR.round(&ir);
} else {
ir.set(0, 0, this->width(), this->height());
ir.set(0, 0,
SkScalarRound(this->width()),
SkScalarRound(this->height()));
}
fDirtyRgn.op(ir, SkRegion::kUnion_Op);