aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-06 18:43:21 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-06 18:43:21 +0000
commit94acc70312d8fe6605dea99f27f62b180bf22284 (patch)
tree1aee4ca3784d75c3ae2eb1a626d1cb5d6479022e /tools
parent22023bea1b7c5eff958214a3fd6f7fc4ffeec76c (diff)
Fixed Windows compiler complaints (esp. in debugger)
Diffstat (limited to 'tools')
-rw-r--r--tools/PictureRenderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp
index 0bc3df10c2..edbdce9ea7 100644
--- a/tools/PictureRenderer.cpp
+++ b/tools/PictureRenderer.cpp
@@ -251,7 +251,7 @@ void TiledPictureRenderer::setupPowerOf2Tiles() {
+ fTileMinPowerOf2Width;
}
- int num_bits = SkScalarCeilToInt(SkScalarLog2(fPicture->width()));
+ int num_bits = SkScalarCeilToInt(SkScalarLog2(SkIntToScalar(fPicture->width())));
int largest_possible_tile_size = 1 << num_bits;
// The tile height is constant for a particular picture.