Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 342d0160 authored by d34d's avatar d34d Committed by Clark Scheff
Browse files

Themes: Translate before rotating composed icons

Order matters.  Calling rotate before translate causes the icon to be
rotated about a point that is not in the center.

Change-Id: Ied1a0e030b39c8b6d8fb23bdbcc5a7f7928ea4a6
parent 66e94973
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -734,9 +734,9 @@ public class IconPackHelper {
                angle += (sRandom.nextFloat() * (iconInfo.iconRotationVariance * 2))
                        - iconInfo.iconRotationVariance;
            }
            canvas.rotate(angle, halfWidth, halfHeight);
            canvas.scale(iconInfo.iconScale, iconInfo.iconScale, halfWidth, halfHeight);
            canvas.translate(iconInfo.iconTranslationX, iconInfo.iconTranslationY);
            canvas.rotate(angle, halfWidth, halfHeight);
            if (iconInfo.colorFilter != null) {
                Paint p = null;
                if (icon instanceof BitmapDrawable) {