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

Commit d950b527 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "Add support for hdmi out on 1920x1200 tablet" into jellybean

parents 9c38da87 5323457a
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -378,8 +378,14 @@ public class Display {
     * @hide
     */
    public int getRawExternalWidth() {
        // Also check height because HDMI cable may be plugged in while we're
        // in portrait mode.
        if (getRawWidth() >= 1920 || getRawHeight() >= 1920) {
            return 1920;
        } else {
            return 1280;
        }
    }

    /**
     * If the display is mirrored to an external HDMI display, returns the
@@ -387,8 +393,12 @@ public class Display {
     * @hide
     */
    public int getRawExternalHeight() {
        if (getRawWidth() >= 1920 || getRawHeight() >= 1920) {
            return 1080;
        } else {
            return 720;
        }
    }

    /**
     * If the display is mirrored to an external HDMI display, returns the