summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxadro <mothedude@gmail.com>2016-01-30 21:30:12 +0100
committerDees Troy <dees_troy@teamw.in>2016-02-01 17:03:23 +0100
commit7509bc53cac937e002a840ac28f6813cc5c97550 (patch)
treea7db3a63ecd9c9e219d94bdb81073c2f8cd3b8e4
parentgui: fix partition list height for image flashing (diff)
downloadandroid_bootable_recovery-7509bc53cac937e002a840ac28f6813cc5c97550.tar
android_bootable_recovery-7509bc53cac937e002a840ac28f6813cc5c97550.tar.gz
android_bootable_recovery-7509bc53cac937e002a840ac28f6813cc5c97550.tar.bz2
android_bootable_recovery-7509bc53cac937e002a840ac28f6813cc5c97550.tar.lz
android_bootable_recovery-7509bc53cac937e002a840ac28f6813cc5c97550.tar.xz
android_bootable_recovery-7509bc53cac937e002a840ac28f6813cc5c97550.tar.zst
android_bootable_recovery-7509bc53cac937e002a840ac28f6813cc5c97550.zip
Diffstat (limited to '')
-rw-r--r--minuitwrp/graphics_overlay.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/minuitwrp/graphics_overlay.cpp b/minuitwrp/graphics_overlay.cpp
index c59fe907c..5d759f6d4 100644
--- a/minuitwrp/graphics_overlay.cpp
+++ b/minuitwrp/graphics_overlay.cpp
@@ -315,6 +315,9 @@ int allocate_overlay(int fd, GRSurface gr_fb)
overlayL.dst_rect.w = gr_fb.width;
overlayL.dst_rect.h = gr_fb.height;
overlayL.alpha = 0xFF;
+#ifdef BOARD_HAS_FLIPPED_SCREEN
+ overlayL.flags = MDP_ROT_180;
+#endif
overlayL.transp_mask = MDP_TRANSP_NOP;
overlayL.id = MSMFB_NEW_REQUEST;
ret = ioctl(fd, MSMFB_OVERLAY_SET, &overlayL);
@@ -352,6 +355,9 @@ int allocate_overlay(int fd, GRSurface gr_fb)
overlayL.dst_rect.w = lWidth;
overlayL.dst_rect.h = height;
overlayL.alpha = 0xFF;
+#ifdef BOARD_HAS_FLIPPED_SCREEN
+ overlayL.flags = MDP_ROT_180;
+#endif
overlayL.transp_mask = MDP_TRANSP_NOP;
overlayL.id = MSMFB_NEW_REQUEST;
ret = ioctl(fd, MSMFB_OVERLAY_SET, &overlayL);
@@ -379,7 +385,11 @@ int allocate_overlay(int fd, GRSurface gr_fb)
overlayR.dst_rect.w = rWidth;
overlayR.dst_rect.h = height;
overlayR.alpha = 0xFF;
+#ifdef BOARD_HAS_FLIPPED_SCREEN
+ overlayR.flags = MDSS_MDP_RIGHT_MIXER | MDP_ROT_180;
+#else
overlayR.flags = MDSS_MDP_RIGHT_MIXER;
+#endif
overlayR.transp_mask = MDP_TRANSP_NOP;
overlayR.id = MSMFB_NEW_REQUEST;
ret = ioctl(fd, MSMFB_OVERLAY_SET, &overlayR);