From 52e598fbfe4faa6eb42afa63914b404aae04729b Mon Sep 17 00:00:00 2001 From: "amanda@chromium.org" Date: Tue, 23 Sep 2008 19:48:17 +0000 Subject: SkRect.fTop should be set to the y coordinate of a CGRect, not the x Patch contributed by James Vega . Original review: http://codereview.chromium.org/3198 Review URL: http://codereview.chromium.org/4230 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2513 0039d316-1c4b-4281-b951-d872f2087c98 --- base/gfx/skia_utils_mac.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base') diff --git a/base/gfx/skia_utils_mac.cc b/base/gfx/skia_utils_mac.cc index f2bec90..d9ccb3f 100644 --- a/base/gfx/skia_utils_mac.cc +++ b/base/gfx/skia_utils_mac.cc @@ -12,7 +12,7 @@ namespace gfx { SkIRect CGRectToSkIRect(const CGRect& rect) { SkIRect sk_rect = { SkScalarRound(rect.origin.x), - SkScalarRound(rect.origin.x), + SkScalarRound(rect.origin.y), SkScalarRound(rect.origin.x + rect.size.width), SkScalarRound(rect.origin.y + rect.size.height) }; @@ -22,7 +22,7 @@ SkIRect CGRectToSkIRect(const CGRect& rect) { SkRect CGRectToSkRect(const CGRect& rect) { SkRect sk_rect = { rect.origin.x, - rect.origin.x, + rect.origin.y, rect.origin.x + rect.size.width, rect.origin.y + rect.size.height, }; -- cgit v1.1