Fix matrix invert call

Invert was incorrectly setting scaleX twice instead of using scaleY.

Test: Added regression test
Change-Id: I630134fda0858b8c59e2beeb41ff98f495258643
Bug: 72824552
(cherry picked from commit a7fe207734ef7a21c386b9b0966eff4953d3bb08)
2 files changed