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

Commit 840bfc92 authored by Daniel Hillenbrand's avatar Daniel Hillenbrand Committed by Tom Marshall
Browse files

minui: support to pan display (FBIOPAN_DISPLAY)

Needed for newer hisilicon boards

Change-Id: I9a5d640b1168de518885b89f63499c6f31958b75
parent 8a6aa6b2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -58,6 +58,10 @@ else
  LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
endif

ifneq ($(BOARD_RECOVERY_NEEDS_FBIOPAN_DISPLAY),)
  LOCAL_CFLAGS += -DBOARD_RECOVERY_NEEDS_FBIOPAN_DISPLAY
endif

include $(BUILD_STATIC_LIBRARY)

# Used by OEMs for factory test images.
+5 −0
Original line number Diff line number Diff line
@@ -44,6 +44,11 @@ void MinuiBackendFbdev::SetDisplayedFramebuffer(unsigned n) {
  if (ioctl(fb_fd, FBIOPUT_VSCREENINFO, &vi) < 0) {
    perror("active fb swap failed");
  }
#ifdef BOARD_RECOVERY_NEEDS_FBIOPAN_DISPLAY
  if (ioctl(fb_fd, FBIOPAN_DISPLAY, &vi) < 0) {
    perror("pan failed");
  }
#endif
  displayed_buffer = n;
}