summaryrefslogtreecommitdiffstats
path: root/minui/graphics.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-06-06 22:32:54 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-06-06 22:32:54 +0200
commitc8d9d6ca17ff7a3059002ff12ac23d00b8c25f6b (patch)
treed6d714915fdd9bb45275a1ff2f1e1a99251a9959 /minui/graphics.cpp
parentMerge "ui: join only if joinable." (diff)
parentMerge "minui: Handle the failures from the drm backend in gr_init" (diff)
downloadandroid_bootable_recovery-c8d9d6ca17ff7a3059002ff12ac23d00b8c25f6b.tar
android_bootable_recovery-c8d9d6ca17ff7a3059002ff12ac23d00b8c25f6b.tar.gz
android_bootable_recovery-c8d9d6ca17ff7a3059002ff12ac23d00b8c25f6b.tar.bz2
android_bootable_recovery-c8d9d6ca17ff7a3059002ff12ac23d00b8c25f6b.tar.lz
android_bootable_recovery-c8d9d6ca17ff7a3059002ff12ac23d00b8c25f6b.tar.xz
android_bootable_recovery-c8d9d6ca17ff7a3059002ff12ac23d00b8c25f6b.tar.zst
android_bootable_recovery-c8d9d6ca17ff7a3059002ff12ac23d00b8c25f6b.zip
Diffstat (limited to 'minui/graphics.cpp')
-rw-r--r--minui/graphics.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/minui/graphics.cpp b/minui/graphics.cpp
index 3b386015a..c1aab412d 100644
--- a/minui/graphics.cpp
+++ b/minui/graphics.cpp
@@ -356,6 +356,10 @@ int gr_init() {
gr_flip();
gr_flip();
+ if (!gr_draw) {
+ printf("gr_init: gr_draw becomes nullptr after gr_flip\n");
+ return -1;
+ }
gr_rotate(DEFAULT_ROTATION);