aboutsummaryrefslogtreecommitdiffstats
path: root/console
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-04-01 09:24:41 (GMT)
committerGerd Hoffmann <kraxel@redhat.com>2010-04-01 09:24:41 (GMT)
commitd58cbc3c5392e7bacd75c61bfbf9e2bcd2850ae9 (patch)
tree365c612056dc212c8bc7faf636c04aea02d2b7fc /console
parent291d7b864be127f1fe78138b5fe476387d18f1ba (diff)
v3.92
Diffstat (limited to 'console')
-rw-r--r--console/scantv.c2
-rw-r--r--console/ttv.c3
-rw-r--r--console/vbi-tty.c1
-rw-r--r--console/webcam.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/console/scantv.c b/console/scantv.c
index 0a470f6..204b4c6 100644
--- a/console/scantv.c
+++ b/console/scantv.c
@@ -225,7 +225,7 @@ main(int argc, char **argv)
do_va_cmd(2,"setfreqtab",chanlist_names[j].str);
/* vbi */
- vbi = vbi_open(ng_dev.vbi,0,0);
+ vbi = vbi_open(ng_dev.vbi,debug,0);
if (NULL == vbi) {
fprintf(stderr,"open %s: %s\n",ng_dev.vbi,strerror(errno));
exit(1);
diff --git a/console/ttv.c b/console/ttv.c
index 46ce94b..89ad6e5 100644
--- a/console/ttv.c
+++ b/console/ttv.c
@@ -1,10 +1,11 @@
+#include "config.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <time.h>
#include <pthread.h>
-#include <X11/Intrinsic.h>
#include <aalib.h>
#include "grab-ng.h"
diff --git a/console/vbi-tty.c b/console/vbi-tty.c
index 07b09c4..04819dc 100644
--- a/console/vbi-tty.c
+++ b/console/vbi-tty.c
@@ -173,7 +173,6 @@ vbi_render_head(struct vbi_tty *tty, int pgno, int subno)
0,0,
pg.columns, 1,
0,1);
-
} else {
len = vbi_export_txt(data,nl_langinfo(CODESET),41*8,
&pg,&head,VBI_ANSICOLOR);
diff --git a/console/webcam.c b/console/webcam.c
index 8ddc107..ace70e9 100644
--- a/console/webcam.c
+++ b/console/webcam.c
@@ -415,13 +415,13 @@ add_text(char *image, int width, int height)
{
time_t t;
struct tm *tm;
- char line[MSG_MAXLEN+1],*ptr;
+ unsigned char line[MSG_MAXLEN+1],*ptr;
int i,x,y,f,len;
time(&t);
tm = localtime(&t);
len = strftime(line,MSG_MAXLEN,get_message(),tm);
- fprintf(stderr,"%s\n",line);
+ // fprintf(stderr,"%s\n",line);
for (y = 0; y < CHAR_HEIGHT; y++) {
ptr = image + 3 * width * (height-CHAR_HEIGHT-2+y) + 12;

Privacy Policy