diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-04-16 13:43:59 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-04-16 13:43:59 +0200 |
commit | 63b5412f8c410694e8c67452452273ae8a9a6871 (patch) | |
tree | 541e7568118c16508465c512df08ab4a9ea4f971 /drmtools.c | |
parent | 1bc4ff02dc49e8860414317bab577eee88fd3ad0 (diff) | |
download | fbida-63b5412f8c410694e8c67452452273ae8a9a6871.tar.gz |
resume display tweak
Diffstat (limited to 'drmtools.c')
-rw-r--r-- | drmtools.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -246,12 +246,17 @@ static void drm_suspend_display(void) drm_fd = -1; } -static void drm_resume_display(void) +static int drm_resume_display(void) { drm_fd = device_open(drm_dev); + if (drm_fd < 0) { + fprintf(stderr, "drm: open %s: %s\n", drm_dev, strerror(errno)); + return -1; + } drm_init_fb(&fb1, drm_fmt, false); if (fb2.mem) drm_init_fb(&fb2, drm_fmt, false); + return 0; } static void drm_flush_display(bool second) |