diff --git a/src/core/SkBitmapProcState.cpp b/src/core/SkBitmapProcState.cpp index 390582d16..821d383e1 100644 --- a/src/core/SkBitmapProcState.cpp +++ b/src/core/SkBitmapProcState.cpp @@ -179,8 +179,8 @@ void SkBitmapProcState::possiblyScaleImage() { // set the inv matrix type to translate-only; - fInvMatrix.setTranslate( 1/fInvMatrix.getScaleX() * fInvMatrix.getTranslateX(), - 1/fInvMatrix.getScaleY() * fInvMatrix.getTranslateY() ); + fInvMatrix.setTranslate(fInvMatrix.getTranslateX() / fInvMatrix.getScaleX(), + fInvMatrix.getTranslateY() / fInvMatrix.getScaleY()); // no need for any further filtering; we just did it!