aboutsummaryrefslogtreecommitdiffstats
path: root/fbi.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-09-11 08:10:07 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-09-11 08:10:07 +0200
commit069b8bca0dc60077eba891566f32aa91532e123c (patch)
tree73bcb58b4e0421e97de9316bd0faa2cbfc79ff2e /fbi.c
parente63f7620b6a8cb64a1d47adb789f51802163a8b7 (diff)
downloadfbida-069b8bca0dc60077eba891566f32aa91532e123c.tar.gz
mode switching for drm
Diffstat (limited to 'fbi.c')
-rw-r--r--fbi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fbi.c b/fbi.c
index cfe5f96..b5c79aa 100644
--- a/fbi.c
+++ b/fbi.c
@@ -1405,14 +1405,14 @@ int main(int argc, char *argv[])
if (device) {
/* device specified */
if (strncmp(device, "/dev/d", 6) == 0) {
- gfx = drm_init(device, output, false);
+ gfx = drm_init(device, output, mode, false);
} else {
framebuffer = true;
gfx = fb_init(device, mode, GET_VT());
}
} else {
/* try drm first, failing that fb */
- gfx = drm_init(NULL, output, false);
+ gfx = drm_init(NULL, output, mode, false);
if (!gfx) {
framebuffer = true;
gfx = fb_init(NULL, mode, GET_VT());