9820横屏开机动画播放不全,右边有三分之一没有显示出来
SC9820E_W18\sprd\frameworks\base\cmds\bootanimation\BootAnimation.cpp
status_t BootAnimation::readyToRun() {
mAssets.addDefaultAssets();
sp<IBinder> dtoken(SurfaceComposerClient::getBuiltInDisplay(
ISurfaceComposer::eDisplayIdMain));
DisplayInfo dinfo;
status_t status = SurfaceComposerClient::getDisplayInfo(dtoken, &dinfo);
if (status)
return -1;
/* SPRD: Add for bug 229049, force the boot animation not to rotation@{ */
// Modify for bug bug 282034, add eFXSurfaceNoDisp flag to remove black frame in bootanimation
// create the native surface
//sp<SurfaceControl> control = session()->createSurface(String8("BootAnimation"),
// dinfo.w, dinfo.h, PIXEL_FORMAT_RGB_565);
sp<SurfaceControl> control;
//zxw modify
/*
if (dinfo.w > dinfo.h) {
control = session()->createSurface(
Stri