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

Commit e8585b17 authored by Romain Guy's avatar Romain Guy
Browse files

Correctly offset the dirty bounds by 0.5px in every direction

The existing code was behaving differently for the leaf view and its parents.

Change-Id: I14c1ce5cc149ff840ad957408d6a41bbb4137264
parent 6db0608d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3789,7 +3789,8 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
                        RectF boundingRect = attachInfo.mTmpTransformRect;
                        boundingRect.set(dirty);
                        m.mapRect(boundingRect);
                        dirty.set((int) boundingRect.left, (int) boundingRect.top,
                        dirty.set((int) (boundingRect.left - 0.5f),
                                (int) (boundingRect.top - 0.5f),
                                (int) (boundingRect.right + 0.5f),
                                (int) (boundingRect.bottom + 0.5f));
                    }