diff options
Diffstat (limited to 'minuitwrp/Android.mk')
-rw-r--r-- | minuitwrp/Android.mk | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/minuitwrp/Android.mk b/minuitwrp/Android.mk index 0f8aae6d3..58634e34e 100644 --- a/minuitwrp/Android.mk +++ b/minuitwrp/Android.mk @@ -145,8 +145,18 @@ ifeq ($(TW_FBIOPAN), true) LOCAL_CFLAGS += -DTW_FBIOPAN endif -ifeq ($(BOARD_HAS_FLIPPED_SCREEN), true) -LOCAL_CFLAGS += -DBOARD_HAS_FLIPPED_SCREEN +ifneq ($(TW_ROTATION),) + ifeq (,$(filter 0 90 180 270, $(TW_ROTATION))) + $(error TW_ROTATION must be set to 0, 90, 180 or 270. Currently set to $(TW_ROTATION)) + endif + LOCAL_CFLAGS += -DTW_ROTATION=$(TW_ROTATION) +else + # Support for old flag + ifeq ($(BOARD_HAS_FLIPPED_SCREEN), true) + LOCAL_CFLAGS += -DTW_ROTATION=180 + else + LOCAL_CFLAGS += -DTW_ROTATION=0 + endif endif ifeq ($(TW_IGNORE_MAJOR_AXIS_0), true) |