http://se.aminet.net/pub/Linux/distributions/slackware/slackware-10.1/source/xap...
[xscreensaver] / hacks / analogtv.h
index ff9e8db2d6b8bb8942e5298c9ee2ede36a1ef228..54092f338be9da5b18e9ff5f4d4621ac584fc400 100644 (file)
@@ -1,4 +1,4 @@
-/* analogtv, Copyright (c) 2003 Trevor Blackwell <tlb@tlb.org>
+/* analogtv, Copyright (c) 2003, 2004 Trevor Blackwell <tlb@tlb.org>
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
@@ -69,7 +69,7 @@ enum {
 };
 
 typedef struct analogtv_input_s {
-  char signal[ANALOGTV_V+1][ANALOGTV_H];
+  signed char signal[ANALOGTV_V+1][ANALOGTV_H];
 
   int do_teletext;
 
@@ -163,6 +163,8 @@ typedef struct analogtv_s {
   int screen_xo,screen_yo; /* centers image in window */
 
   void (*event_handler)(Display *dpy, XEvent *event);
+  int (*key_handler)(Display *dpy, XEvent *event,void *key_data);
+  void *key_data;
 
   int flutter_horiz_desync;
   int flutter_tint;