Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d514fe7e authored by Mike J. Chen's avatar Mike J. Chen
Browse files

DO NOT MERGE



Change BootAnimation's initial display size query to check
a system property instead of the SurfaceFlinger's display
size (which comes from the frame buffer) in case the hwc
choose a display size that is smaller than the full frame
buffer.  The hwc would do this if the monitor's preferred/native
resolution is less than 1080p.

Change-Id: I33bf06fe06a21e778cf3f23eaf0374346a6e2aa0
Signed-off-by: default avatarMike J. Chen <mjchen@google.com>
parent 1903a732
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -213,9 +213,14 @@ status_t BootAnimation::readyToRun() {
    mAssets.addDefaultAssets();

    DisplayInfo dinfo;
    char display_size[PROPERTY_VALUE_MAX];

    if (property_get("sys.display-size", display_size, "") <= 0 ||
        sscanf(display_size, "%dx%d", &dinfo.w, &dinfo.h) != 2) {
        status_t status = session()->getDisplayInfo(0, &dinfo);
        if (status)
            return -1;
    }

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