diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2015-03-09 19:58:54 +0100 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2015-03-13 17:20:57 +0100 |
commit | 4f6a9762123126fcfbd2f1b52755565531d96c30 (patch) | |
tree | 76e2e02159197c3f4086dd658246de0f04098eac /minuitwrp/graphics.c | |
parent | GUI: Add monospace TTF (diff) | |
download | android_bootable_recovery-4f6a9762123126fcfbd2f1b52755565531d96c30.tar android_bootable_recovery-4f6a9762123126fcfbd2f1b52755565531d96c30.tar.gz android_bootable_recovery-4f6a9762123126fcfbd2f1b52755565531d96c30.tar.bz2 android_bootable_recovery-4f6a9762123126fcfbd2f1b52755565531d96c30.tar.lz android_bootable_recovery-4f6a9762123126fcfbd2f1b52755565531d96c30.tar.xz android_bootable_recovery-4f6a9762123126fcfbd2f1b52755565531d96c30.tar.zst android_bootable_recovery-4f6a9762123126fcfbd2f1b52755565531d96c30.zip |
Diffstat (limited to '')
-rw-r--r-- | minuitwrp/graphics.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/minuitwrp/graphics.c b/minuitwrp/graphics.c index 10d74a7a7..1465ce99b 100644 --- a/minuitwrp/graphics.c +++ b/minuitwrp/graphics.c @@ -163,12 +163,17 @@ int getFbYres (void) { static int get_framebuffer(GGLSurface *fb) { - int fd; + int fd, index = 0; void *bits; fd = open("/dev/graphics/fb0", O_RDWR); + while (fd < 0 && index < 10) { + usleep(1000); + fd = open("/dev/graphics/fb0", O_RDWR); + index++; + } if (fd < 0) { - perror("cannot open fb0"); + perror("cannot open fb0\n"); return -1; } |