commit | 764ea0442141b4b961bb6c6af18e66cfaa617b7f | [log] [tgz] |
---|---|---|
author | joenchen <joenchen@google.com> | Mon Apr 11 23:58:34 2022 +0800 |
committer | Joen Chen <joenchen@google.com> | Tue Apr 19 02:05:33 2022 +0000 |
tree | 0f992391350d29a958f1a2fe5d2c4b8dde7433a6 | |
parent | 4b3debf652480448f4a63e36a5bd168ba69b9c12 [diff] |
bootanimation: correct logo position and size after resolution changed The resolution may be changed while the boot animation is playing. mInitWidth and mInitHeight store the original resolution, and then the animation coordinate and size are recalculated according to the ratio (mWidth/mInitWidth and mHeight/mInitHeight). Bug: 228605923 Test: change resolution and then reboot to check the animation Change-Id: Id09490ecf7fc4b3e1a6baf073c134f357e9b327f