diff options
author | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-04-10 17:42:21 +0000 |
---|---|---|
committer | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-04-10 17:42:21 +0000 |
commit | 75589257c6ac7fc55a66502b74b8bc09c0212fea (patch) | |
tree | 24d452385ad37eba7f91a17aec9b5a7851007229 /gm/bitmapcopy.cpp | |
parent | 56dd630c41d662bcf2a3f08100f2c6accda05ba9 (diff) |
Fix miscellaneous compiler warnings from Visual Studio 2010.
Changes serialization path for MorphologyImageFilter, handling of Windows
HRESULTS; otherwise just tweaks tests.
git-svn-id: http://skia.googlecode.com/svn/trunk@3642 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/bitmapcopy.cpp')
-rw-r--r-- | gm/bitmapcopy.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gm/bitmapcopy.cpp b/gm/bitmapcopy.cpp index 249ec436b0..edf6445911 100644 --- a/gm/bitmapcopy.cpp +++ b/gm/bitmapcopy.cpp @@ -30,13 +30,17 @@ SkBitmap::Config gConfigs[] = { static void draw_checks(SkCanvas* canvas, int width, int height) { SkPaint paint; paint.setColor(SK_ColorRED); - canvas->drawRectCoords(0, 0, width / 2, height / 2, paint); + canvas->drawRectCoords(SkIntToScalar(0), SkIntToScalar(0), + SkIntToScalar(width / 2), SkIntToScalar(height / 2), paint); paint.setColor(SK_ColorGREEN); - canvas->drawRectCoords(width / 2, 0, width, height / 2, paint); + canvas->drawRectCoords(SkIntToScalar(width / 2), SkIntToScalar(0), + SkIntToScalar(width), SkIntToScalar(height / 2), paint); paint.setColor(SK_ColorBLUE); - canvas->drawRectCoords(0, height / 2, width / 2, height, paint); + canvas->drawRectCoords(SkIntToScalar(0), SkIntToScalar(height / 2), + SkIntToScalar(width / 2), SkIntToScalar(height), paint); paint.setColor(SK_ColorYELLOW); - canvas->drawRectCoords(width / 2, height / 2, width, height, paint); + canvas->drawRectCoords(SkIntToScalar(width / 2), SkIntToScalar(height / 2), + SkIntToScalar(width), SkIntToScalar(height), paint); } class BitmapCopyGM : public GM { |