diff options
author | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-27 02:01:19 +0000 |
---|---|---|
committer | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-27 02:01:19 +0000 |
commit | 8ccf590b89cec1a5974b6f4b7b49ca67cc5036cf (patch) | |
tree | ebc489075b8e2f6fa7807672e3b9d1689382820e /debugger | |
parent | e7b3d29a1289e64130dd0ec905d94feedc9d1064 (diff) |
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@6556 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'debugger')
-rw-r--r-- | debugger/SkDebugCanvas.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/debugger/SkDebugCanvas.cpp b/debugger/SkDebugCanvas.cpp index d9392bcc33..0c1c26baeb 100644 --- a/debugger/SkDebugCanvas.cpp +++ b/debugger/SkDebugCanvas.cpp @@ -201,8 +201,8 @@ static SkBitmap createBitmap(const SkPath& path) { static SkBitmap createBitmap(const SkBitmap& input, const SkRect* srcRect) { SkBitmap bitmap; - bitmap.setConfig(SkBitmap::kARGB_8888_Config, - SkImageWidget::kImageWidgetWidth, + bitmap.setConfig(SkBitmap::kARGB_8888_Config, + SkImageWidget::kImageWidgetWidth, SkImageWidget::kImageWidgetHeight); bitmap.allocPixels(); bitmap.eraseColor(SK_ColorLTGRAY); @@ -220,7 +220,7 @@ static SkBitmap createBitmap(const SkBitmap& input, const SkRect* srcRect) { xScale *= input.width() / (float) input.height(); } - SkRect dst = SkRect::MakeXYWH(SK_Scalar1, SK_Scalar1, + SkRect dst = SkRect::MakeXYWH(SK_Scalar1, SK_Scalar1, xScale * input.width(), yScale * input.height()); |