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

Skip to content
Commit 60e54589 authored by abdullahirum's avatar abdullahirum
Browse files

Adjust wallpaper during B&R to center align

This CL implements the alogirithm to correctly restore the wallpaper's center point from devices with different aspect ratios (during B&R).
 The algorithm involves first computing the original crop of the user (without parallax).
 Then manually adjusting the user's original crop to respect the current device's aspect ratio (thereby preserving the center point).
 Then finally, adding any leftover image real-estate (i.e. space left over on the horizontal axis) to add parallax effect.

Flag: NONE
Bug: 328234087
Test: http://ab/I00700010262844212
Change-Id: I706f955ae54b570af04235d2e0548d1570e5ac6b
parent 859be0cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment