From 3e805789a3855007018f8463797a4f9fdb19838d Mon Sep 17 00:00:00 2001 From: caryclark Date: Mon, 25 Jul 2016 11:28:36 -0700 Subject: 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 --- core/fxge/skia/fx_skia_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3