aboutsummaryrefslogtreecommitdiffstats
path: root/fbpdf.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 /fbpdf.c
parente63f7620b6a8cb64a1d47adb789f51802163a8b7 (diff)
downloadfbida-069b8bca0dc60077eba891566f32aa91532e123c.tar.gz
mode switching for drm
Diffstat (limited to 'fbpdf.c')
-rw-r--r--fbpdf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fbpdf.c b/fbpdf.c
index 9b4e665..73ce1f9 100644
--- a/fbpdf.c
+++ b/fbpdf.c
@@ -317,10 +317,10 @@ int main(int argc, char *argv[])
/* device specified */
if (strncmp(device, "/dev/d", 6) == 0) {
if (opengl) {
- gfx = drm_init_egl(device, output);
+ gfx = drm_init_egl(device, output, mode);
}
if (!gfx) {
- gfx = drm_init(device, output, pageflip);
+ gfx = drm_init(device, output, mode, pageflip);
}
} else {
framebuffer = true;
@@ -329,10 +329,10 @@ int main(int argc, char *argv[])
} else {
/* try drm first, failing that fb */
if (opengl) {
- gfx = drm_init_egl(NULL, output);
+ gfx = drm_init_egl(NULL, output, mode);
}
if (!gfx) {
- gfx = drm_init(NULL, output, pageflip);
+ gfx = drm_init(NULL, output, mode, pageflip);
}
if (!gfx) {
framebuffer = true;