summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-02-22 19:01:19 +0100
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-02-22 19:01:19 +0100
commit5e067df9754f2ff8805edfa1a6dccf9e3048bc9a (patch)
treea7cb2dba8a109be909a5f999319d7fcbbb60cb0b
parent[automerger skipped] Force package installation with FUSE unless the package stores on device am: ba27adbbb6 -s ours am: e00afc3fbf -s ours (diff)
parentMerge "Recovery UI meet issue if image size is too large" am: f5b94d6e9b am: c9b0fe7172 (diff)
downloadandroid_bootable_recovery-5e067df9754f2ff8805edfa1a6dccf9e3048bc9a.tar
android_bootable_recovery-5e067df9754f2ff8805edfa1a6dccf9e3048bc9a.tar.gz
android_bootable_recovery-5e067df9754f2ff8805edfa1a6dccf9e3048bc9a.tar.bz2
android_bootable_recovery-5e067df9754f2ff8805edfa1a6dccf9e3048bc9a.tar.lz
android_bootable_recovery-5e067df9754f2ff8805edfa1a6dccf9e3048bc9a.tar.xz
android_bootable_recovery-5e067df9754f2ff8805edfa1a6dccf9e3048bc9a.tar.zst
android_bootable_recovery-5e067df9754f2ff8805edfa1a6dccf9e3048bc9a.zip
-rw-r--r--recovery_ui/screen_ui.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/recovery_ui/screen_ui.cpp b/recovery_ui/screen_ui.cpp
index 087fc0e84..6dcb161fa 100644
--- a/recovery_ui/screen_ui.cpp
+++ b/recovery_ui/screen_ui.cpp
@@ -448,7 +448,9 @@ void ScreenRecoveryUI::draw_foreground_locked() {
int frame_height = gr_get_height(frame);
int frame_x = (ScreenWidth() - frame_width) / 2;
int frame_y = GetAnimationBaseline();
- DrawSurface(frame, 0, 0, frame_width, frame_height, frame_x, frame_y);
+ 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);
}
if (progressBarType != EMPTY) {