summaryrefslogtreecommitdiffstats
path: root/minui/graphics.cpp
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2015-07-03 22:34:26 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-03 22:34:26 +0200
commitf09db68acbb5501826ee0b4f9ed803c3eb1ec678 (patch)
treec56e5353cffd256ef4c4f87646f074d07a6cec28 /minui/graphics.cpp
parentam c4b6f87f: am 7125f959: Revert "Zero blocks before BLKDISCARD" (diff)
parentam 8409b088: Merge "Add drm support to minui" into mnc-dev (diff)
downloadandroid_bootable_recovery-f09db68acbb5501826ee0b4f9ed803c3eb1ec678.tar
android_bootable_recovery-f09db68acbb5501826ee0b4f9ed803c3eb1ec678.tar.gz
android_bootable_recovery-f09db68acbb5501826ee0b4f9ed803c3eb1ec678.tar.bz2
android_bootable_recovery-f09db68acbb5501826ee0b4f9ed803c3eb1ec678.tar.lz
android_bootable_recovery-f09db68acbb5501826ee0b4f9ed803c3eb1ec678.tar.xz
android_bootable_recovery-f09db68acbb5501826ee0b4f9ed803c3eb1ec678.tar.zst
android_bootable_recovery-f09db68acbb5501826ee0b4f9ed803c3eb1ec678.zip
Diffstat (limited to '')
-rw-r--r--minui/graphics.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/minui/graphics.cpp b/minui/graphics.cpp
index f09f1c6b0..c0eea9e38 100644
--- a/minui/graphics.cpp
+++ b/minui/graphics.cpp
@@ -369,6 +369,11 @@ int gr_init(void)
}
if (!gr_draw) {
+ gr_backend = open_drm();
+ gr_draw = gr_backend->init(gr_backend);
+ }
+
+ if (!gr_draw) {
gr_backend = open_fbdev();
gr_draw = gr_backend->init(gr_backend);
if (gr_draw == NULL) {