手机任意界面转换成横屏时关机或者重启,关机界面只显示一半
修改方法如下:文章来源:https://www.toymoban.com/news/detail-631104.html
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<pcount ; i++) {文章来源地址https://www.toymoban.com/news/detail-631104.html
到了这里,关于横屏关机动画只显示一半的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!