aboutsummaryrefslogtreecommitdiffstats
path: root/v4l-conf.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-04-01 11:24:35 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-04-01 11:24:35 +0200
commita9ffb70640ff13416921e62fed71adc08611bfbe (patch)
treecd8997c52175f812d440fe03214ca8ed190e12e6 /v4l-conf.c
parenta61e6fb111a28e7e52ecf3aea386c8a065bd4942 (diff)
v2.12
Diffstat (limited to 'v4l-conf.c')
-rw-r--r--v4l-conf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/v4l-conf.c b/v4l-conf.c
index cd8746e..321ec93 100644
--- a/v4l-conf.c
+++ b/v4l-conf.c
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <strings.h>
#include <errno.h>
#include <fcntl.h>
@@ -169,7 +170,11 @@ main(int argc, char *argv[])
if (dpy) {
/* x11 */
fbuf.depth = (wts.depth+7) & 0xf8;
+#ifdef HAVE_LIBXXF86DGA
fbuf.width = (flags & XF86DGADirectPresent) ? width : wts.width;
+#else
+ fbuf.width = wts.width;
+#endif
fbuf.height = wts.height;
fbuf.bytesperline = fbuf.width * fbuf.depth/8;
} else {

Privacy Policy