diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2016-03-24 15:34:46 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-03-24 15:34:46 +0100 |
commit | 187097bc1722406fb62597df26308529fec6951e (patch) | |
tree | b6ba697460281a36a1d3d2ba400165f1e63e67cf /fbi.c | |
parent | d3a32431b1bd9bfd259c92df66211bff5619628d (diff) | |
download | fbida-187097bc1722406fb62597df26308529fec6951e.tar.gz |
drm: allow picking output
Diffstat (limited to 'fbi.c')
-rw-r--r-- | fbi.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1435,7 +1435,7 @@ int main(int argc, char *argv[]) int once; int i, arg, key; bool framebuffer = false; - char *info, *desc, *filelist, *device, *mode; + char *info, *desc, *filelist, *device, *output, *mode; char linebuffer[128]; struct flist *fprev = NULL; @@ -1520,18 +1520,19 @@ int main(int argc, char *argv[]) /* gfx device init */ device = cfg_get_str(O_DEVICE); + output = cfg_get_str(O_OUTPUT); mode = cfg_get_str(O_VIDEO_MODE); if (device) { /* device specified */ if (strncmp(device, "/dev/d", 6) == 0) { - gfx = drm_init(device); + gfx = drm_init(device, output); } else { framebuffer = true; gfx = fb_init(device, mode, GET_VT()); } } else { /* try drm first, failing that fb */ - gfx = drm_init(NULL); + gfx = drm_init(NULL, output); if (!gfx) { framebuffer = true; gfx = fb_init(NULL, mode, GET_VT()); |