Index: src/views/SkWindow.cpp |
diff --git a/src/views/SkWindow.cpp b/src/views/SkWindow.cpp |
index 32914502d9cd049b899efe40e1689c9ff937d681..7a4d71a2c015fedbc8a8ed6464e6605fef972ba8 100644 |
--- a/src/views/SkWindow.cpp |
+++ b/src/views/SkWindow.cpp |
@@ -134,8 +134,8 @@ bool SkWindow::handleInval(const SkRect* localR) |
devR.round(&ir); |
} else { |
ir.set(0, 0, |
- SkScalarRound(this->width()), |
- SkScalarRound(this->height())); |
+ SkScalarRoundToInt(this->width()), |
+ SkScalarRoundToInt(this->height())); |
} |
fDirtyRgn.op(ir, SkRegion::kUnion_Op); |
@@ -145,8 +145,8 @@ bool SkWindow::handleInval(const SkRect* localR) |
void SkWindow::forceInvalAll() { |
fDirtyRgn.setRect(0, 0, |
- SkScalarCeil(this->width()), |
- SkScalarCeil(this->height())); |
+ SkScalarCeilToInt(this->width()), |
+ SkScalarCeilToInt(this->height())); |
} |
#if defined(SK_BUILD_FOR_WINCE) && defined(USE_GX_SCREEN) |