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
diff --git a/gm/image.cpp b/gm/image.cpp
index 090106d..444cc4d 100644
--- a/gm/image.cpp
+++ b/gm/image.cpp
@@ -37,7 +37,8 @@
}
static void drawContents(SkSurface* surface, SkColor fillC) {
- SkSize size = SkSize::Make(surface->width(), surface->height());
+ SkSize size = SkSize::Make(SkIntToScalar(surface->width()),
+ SkIntToScalar(surface->height()));
SkCanvas* canvas = surface->getCanvas();
SkScalar stroke = size.fWidth / 10;