— a/frameworks/base/cmds/bootanimation/BootAnimation.cpp
+++ b/frameworks/base/cmds/bootanimation/BootAnimation.cpp
@@ -453,6 +453,20 @@ status_t BootAnimation::readyToRun() {
ui::Size resolution = displayMode.resolution;
resolution = limitSurfaceSize(resolution.width, resolution.height);
- char rAngleValue[PROPERTY_VALUE_MAX];
- property_get(“persist.default.rotation”, rAngleValue, “0”);
- int rAngle = atoi(rAngleValue);
- int d_width,d_height;
- if ( rAngle == 1 || rAngle == 3) {
-
d_width = resolution.getHeight();
-
d_height = resolution.getWidth();
-
ALOGD("BootAnimation default set rotation to be landscape...");
- }
- else{
-
d_width = resolution.getWidth();
-
d_height = resolution.getHeight();
- }
#if 0
#ifdef BOOTANIMATION_EXT
Vector configs;
@@ -470,7 +484,7 @@ status_t BootAnimation::readyToRun() {
sp control;
if (!mShuttingDown) {
control &#