Skip to content

Commit faf0972

Browse files
committed
DO NOT MERGE
This reverts commit d514fe7. We're not going to support < 1080p without scaling after all. Change-Id: I54b17f3ca02351382ddf90c729c6154733c95011 Signed-off-by: Mike J. Chen <mjchen@google.com>
1 parent d514fe7 commit faf0972

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

cmds/bootanimation/BootAnimation.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,9 @@ status_t BootAnimation::readyToRun() {
213213
mAssets.addDefaultAssets();
214214

215215
DisplayInfo dinfo;
216-
char display_size[PROPERTY_VALUE_MAX];
217-
218-
if (property_get("sys.display-size", display_size, "") <= 0 ||
219-
sscanf(display_size, "%dx%d", &dinfo.w, &dinfo.h) != 2) {
220-
status_t status = session()->getDisplayInfo(0, &dinfo);
221-
if (status)
222-
return -1;
223-
}
216+
status_t status = session()->getDisplayInfo(0, &dinfo);
217+
if (status)
218+
return -1;
224219

225220
// create the native surface
226221
sp<SurfaceControl> control = session()->createSurface(

0 commit comments

Comments
 (0)