diff options
author | 2012-09-06 18:43:21 +0000 | |
---|---|---|
committer | 2012-09-06 18:43:21 +0000 | |
commit | 94acc70312d8fe6605dea99f27f62b180bf22284 (patch) | |
tree | 1aee4ca3784d75c3ae2eb1a626d1cb5d6479022e /tools | |
parent | 22023bea1b7c5eff958214a3fd6f7fc4ffeec76c (diff) |
Fixed Windows compiler complaints (esp. in debugger)
https://codereview.appspot.com/6497090/
git-svn-id: http://skia.googlecode.com/svn/trunk@5419 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools')
-rw-r--r-- | tools/PictureRenderer.cpp | 2 |
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. |