Review URL: https://codereview.chromium.org/
23539005
git-svn-id: http://skia.googlecode.com/svn/trunk@11015
2bbb7eff-a529-9590-31e7-
b0007b416f81
const int HEIGHT = 400;
const int SPACER = 10;
- SkRect rect = SkRect::MakeXYWH(SPACER, SPACER, WIDTH-(2*SPACER), (HEIGHT-(2*SPACER)) / 7);
+ SkRect rect = SkRect::MakeXYWH(SkIntToScalar(SPACER), SkIntToScalar(SPACER),
+ SkIntToScalar(WIDTH-(2*SPACER)),
+ SkIntToScalar((HEIGHT-(2*SPACER)) / 7));
const SkBitmap::Config configs[] = { SkBitmap::kRGB_565_Config,
SkBitmap::kARGB_8888_Config