横屏关机动画只显示一半

手机任意界面转换成横屏时关机或者重启,关机界面只显示一半

修改方法如下:

diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp
index 30f1a15..31399be 100644
--- a/cmds/bootanimation/BootAnimation.cpp
+++ b/cmds/bootanimation/BootAnimation.cpp
@@ -1333,7 +1333,10 @@
 
     SLOGD("%sAnimationShownTiming start time: %" PRId64 "ms", mShuttingDown ? "Shutdown" : "Boot",
             elapsedRealtime());
-
+#ifdef BOOTANIMATION_EXT
+    mUnisocBootAnimation.scaleSurfaceIfNeeded(
+        mShuttingDown, mFlingerSurfaceControl, mSurfaceWidth, mSurfaceHeight);
+#endif
     int fadedFramesCount = 0;
     int lastDisplayedProgress = 0;
     for (size_t i=0 ; i

你可能感兴趣的:(android)