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

Commit f5b94d6e authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "Recovery UI meet issue if image size is too large"

parents 5ac61638 0d81b894
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -448,6 +448,8 @@ void ScreenRecoveryUI::draw_foreground_locked() {
    int frame_height = gr_get_height(frame);
    int frame_x = (ScreenWidth() - frame_width) / 2;
    int frame_y = GetAnimationBaseline();
    if (frame_x >= 0 && frame_y >= 0 && (frame_x + frame_width) < ScreenWidth() &&
        (frame_y + frame_height) < ScreenHeight())
      DrawSurface(frame, 0, 0, frame_width, frame_height, frame_x, frame_y);
  }