diff options
author | caryclark <caryclark@google.com> | 2016-07-28 11:35:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-28 11:35:27 -0700 |
commit | 0600234fc65d52e4830ad2cc6c1723fb33c9414f (patch) | |
tree | 4dc62ad5cc31700e5066274d7567d28a8255dc4c /core/fxge/skia | |
parent | 6f1025492801aaa93fca2c0ed7c40a3389ad8cd1 (diff) | |
download | pdfium-0600234fc65d52e4830ad2cc6c1723fb33c9414f.tar.xz |
fix text matrix again
The text matrix for Skia is still wrong.
The last fix allowed text to draw correctly when rotated,
but did not draw correctly when skewed.
With this edit, text draws correctly rotated, skewed
horizontally, skewed vertically, and rotated and skewed.
R=dsinclair@chromium.org
Review-Url: https://codereview.chromium.org/2189093002
Diffstat (limited to 'core/fxge/skia')
-rw-r--r-- | core/fxge/skia/fx_skia_device.cpp | 2 |
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 a5c509e61f..df20203820 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.c, m.e, m.b, -m.d, m.f, 0, 0, 1); return skMatrix; } |