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

Commit d73903c8 authored by niks255's avatar niks255 Committed by Dees Troy
Browse files

gui: Detect device resolution with TARGET_SCREEN_HEIGHT/WIDTH

 * Ease the compilation with Lineage/CM configurations
    when TW_THEME or DEVICE_RESOLUTION are not defined

Change-Id: I35a8ce651ba5333c8426baa3d70fcbc42a2e5e59
parent 584b9774
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -98,6 +98,9 @@ TWRP_NEW_THEME := true


ifeq ($(TW_CUSTOM_THEME),)
ifeq ($(TW_CUSTOM_THEME),)
    ifeq ($(TW_THEME),)
    ifeq ($(TW_THEME),)
        ifeq ($(DEVICE_RESOLUTION),)
            DEVICE_RESOLUTION := $(TARGET_SCREEN_WIDTH)x$(TARGET_SCREEN_HEIGHT)
        endif
        # This converts the old DEVICE_RESOLUTION flag to the new TW_THEME flag
        # This converts the old DEVICE_RESOLUTION flag to the new TW_THEME flag
        PORTRAIT_MDPI := 320x480 480x800 480x854 540x960
        PORTRAIT_MDPI := 320x480 480x800 480x854 540x960
        PORTRAIT_HDPI := 720x1280 800x1280 1080x1920 1200x1920 1440x2560 1600x2560
        PORTRAIT_HDPI := 720x1280 800x1280 1080x1920 1200x1920 1440x2560 1600x2560