diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-15 14:36:41 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-15 14:36:41 +0000 |
commit | 5d8d18651a64f62dbb8881794e23f53bf22c9a23 (patch) | |
tree | f1de838dc1288635ea2cfb08ba01d808fd95a5f0 /tools | |
parent | 5bdef29ae0f5a495381cd2c9787ce7c112e58354 (diff) |
Addressed Windows compiler complaints
http://codereview.appspot.com/6462062/
This CL will require re-baselining of the imagemagnifier GM
git-svn-id: http://skia.googlecode.com/svn/trunk@5108 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools')
-rw-r--r-- | tools/PictureRenderer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp index 6af12181f7..f0aba9fc6a 100644 --- a/tools/PictureRenderer.cpp +++ b/tools/PictureRenderer.cpp @@ -76,10 +76,10 @@ void TiledPictureRenderer::init(SkPicture* pict) { this->INHERITED::init(pict); if (fTileWidthPercentage > 0) { - fTileWidth = sk_float_ceil2int(fTileWidthPercentage * fPicture->width() / 100); + fTileWidth = sk_float_ceil2int(float(fTileWidthPercentage * fPicture->width() / 100)); } if (fTileHeightPercentage > 0) { - fTileHeight = sk_float_ceil2int(fTileHeightPercentage * fPicture->height() / 100); + fTileHeight = sk_float_ceil2int(float(fTileHeightPercentage * fPicture->height() / 100)); } this->setupTiles(); |