summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcaryclark <caryclark@google.com>2016-07-25 11:28:36 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-25 11:28:36 -0700
commit3e805789a3855007018f8463797a4f9fdb19838d (patch)
tree7b642c55bd106b5a945e289096ff8c3eee8e7e2b
parentfbf52c2231bd148bcf1fcd6ac1e6a5ed5e311b8c (diff)
downloadpdfium-3e805789a3855007018f8463797a4f9fdb19838d.tar.xz
fix text rotation for skia
My initial guess for text rotation worked for scaled but not skewed or rotated. R=dsinclair@chromium.org,reed@google.com Review-Url: https://codereview.chromium.org/2178623002
-rw-r--r--core/fxge/skia/fx_skia_device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxge/skia/fx_skia_device.cpp b/core/fxge/skia/fx_skia_device.cpp
index 3c7ce7ee98..a5c509e61f 100644
--- a/core/fxge/skia/fx_skia_device.cpp
+++ b/core/fxge/skia/fx_skia_device.cpp
@@ -137,7 +137,7 @@ SkMatrix ToSkMatrix(const CFX_Matrix& m) {
// use when pdf's y-axis points up insead of down
SkMatrix ToFlippedSkMatrix(const CFX_Matrix& m) {
SkMatrix skMatrix;
- skMatrix.setAll(m.a, m.b, m.e, -m.c, -m.d, m.f, 0, 0, 1);
+ skMatrix.setAll(m.a, -m.b, m.e, m.c, -m.d, m.f, 0, 0, 1);
return skMatrix;
}