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

Commit b94ec0c2 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 13982012 from 4519c2ec to 25Q4-release

Change-Id: I6972f68bd38b8279e1625a85cdb56a4c036ec50c
parents 65842ded 4519c2ec
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -445,12 +445,17 @@ int gr_init(std::initializer_list<GraphicsBackend> backends) {
  overscan_offset_x = gr_draw->width * overscan_percent / 100;
  overscan_offset_y = gr_draw->height * overscan_percent / 100;

  bool no_initial_modset_flush =
      android::base::GetBoolProperty("ro.minui.no_initial_modset_flush", false);

  if (!no_initial_modset_flush) {
    gr_flip();
    gr_flip();
    if (!gr_draw) {
      printf("gr_init: gr_draw becomes nullptr after gr_flip\n");
      return -1;
    }
  }

  std::string rotation_str =
      android::base::GetProperty("ro.minui.default_rotation", "ROTATION_NONE");