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

Commit 0073c987 authored by Carlos Silva's avatar Carlos Silva
Browse files

Add support for devices that have an upside-down mounted display. ZTE Blade is...

Add support for devices that have an upside-down mounted display. ZTE Blade is an example of this type of devices.

Change-Id: I4735b24c1805cf215fae92c18bb2909787d2dcc5
parent 9e455359
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -26,6 +26,9 @@ endif
ifeq ($(BOARD_NO_RGBX_8888), true)
	LOCAL_CFLAGS += -DNO_RGBX_8888
endif
ifeq ($(BOARD_HAS_FLIPPED_SCREEN), true)
	LOCAL_CFLAGS += -DHAS_FLIPPED_SCREEN
endif
ifeq ($(TARGET_BOARD_PLATFORM), s5pc110)
	LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
endif
+5 −0
Original line number Diff line number Diff line
@@ -2425,6 +2425,11 @@ void GraphicPlane::setDisplayHardware(DisplayHardware *hw)
        case 90:
            displayOrientation = ISurfaceComposer::eOrientation90;
            break;
#ifdef HAS_FLIPPED_SCREEN
        case 180:
            displayOrientation = ISurfaceComposer::eOrientation180;
            break;
#endif
        case 270:
            displayOrientation = ISurfaceComposer::eOrientation270;
            break;