summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-10 20:08:04 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-10 20:08:04 +0000
commitdcbcfda5f23f24de7a041aa12a59e65709c630a9 (patch)
tree5ed4b18b906134ce913b706b8a5d9d118edf9991 /skia
parent75f5f9a1b9764033bec1fe9dcf546c5c5dcb0940 (diff)
downloadchromium_src-dcbcfda5f23f24de7a041aa12a59e65709c630a9.zip
chromium_src-dcbcfda5f23f24de7a041aa12a59e65709c630a9.tar.gz
chromium_src-dcbcfda5f23f24de7a041aa12a59e65709c630a9.tar.bz2
Draw the image at the origin rather than one pixel to the right.
BUG=none TEST=favicons, images shouldn't be shifted, left edge shouldn't be broken Review URL: http://codereview.chromium.org/149473 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20405 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/skia_utils_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/skia/ext/skia_utils_mac.mm b/skia/ext/skia_utils_mac.mm
index 07d9f0c..6bb0a96 100644
--- a/skia/ext/skia_utils_mac.mm
+++ b/skia/ext/skia_utils_mac.mm
@@ -99,7 +99,7 @@ SkBitmap CGImageToSkBitmap(CGImageRef image) {
// happens right-side up. Skia has an upper-left origin and CG has a lower-
// left one.
CGContextScaleCTM(context, 1.0, -1.0);
- CGContextTranslateCTM(context, 1, -height);
+ CGContextTranslateCTM(context, 0, -height);
// We want to copy transparent pixels from |image|, instead of blending it
// onto uninitialized pixels.