diff options
author | gman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-12 21:12:38 +0000 |
---|---|---|
committer | gman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-12 21:12:38 +0000 |
commit | 59fea0a2182828f3410a16ae68296cc9dcbbf8c2 (patch) | |
tree | bcf2bad8890f157cb989aa4d46a2c17140abfa3c /o3d/core | |
parent | ce59da8826daf1ebe9d547bd5d9f5b66490473f1 (diff) | |
download | chromium_src-59fea0a2182828f3410a16ae68296cc9dcbbf8c2.zip chromium_src-59fea0a2182828f3410a16ae68296cc9dcbbf8c2.tar.gz chromium_src-59fea0a2182828f3410a16ae68296cc9dcbbf8c2.tar.bz2 |
Fix for canvas.drawBitmap
Review URL: http://codereview.chromium.org/269055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28741 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/core')
-rw-r--r-- | o3d/core/cross/canvas.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/o3d/core/cross/canvas.cc b/o3d/core/cross/canvas.cc index 6040000..7e8f975 100644 --- a/o3d/core/cross/canvas.cc +++ b/o3d/core/cross/canvas.cc @@ -215,10 +215,11 @@ void Canvas::DrawBitmap(Texture2D* texture2d, SaveMatrix(); if (flip_) { Scale(1, -1); + bottom = -bottom; } sk_canvas_.drawBitmap(bitmap, SkFloatToScalar(left), - SkFloatToScalar(-bottom), + SkFloatToScalar(bottom), NULL); RestoreMatrix(); } |