summaryrefslogtreecommitdiff
path: root/wm/tvtwm/patches/patch-av
blob: 7b7700557164ece8ce3fc6bf00830d1e7e3978ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
$NetBSD: patch-av,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $

Index: ssetroot.c
===================================================================
RCS file: /home/siren/src/tvtwm/ssetroot.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- ssetroot.c	1999/08/08 05:46:52	1.1.1.1
+++ ssetroot.c	1999/08/08 05:56:58	1.2
@@ -37,11 +37,21 @@
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
 #include <X11/Xatom.h>
+#include <X11/Xmu/CurUtil.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include "X11/bitmaps/gray"
 #include "X11/bitmaps/root_weave"
 
 char *index();
+Cursor CreateCursorFromFiles(char *cursor_file, char *mask_file);
+Pixmap MakeModulaBitmap(), ReadBitmapFile();
+XColor NameToXColor();
+unsigned long NameToPixel();
+Cursor CreateCursorFromName();
+void SetBackgroundToBitmap(Pixmap bitmap, unsigned int width,
+			   unsigned int height);
+void FixupState(void);
 
 #define Dynamic 1
 
@@ -58,6 +68,7 @@
 int unsave_past = 0;
 Pixmap save_pixmap = (Pixmap)None;
 
+void
 usage()
 {
     fprintf(stderr, "usage: %s [options]\n", program_name);
@@ -79,11 +90,8 @@
     /*NOTREACHED*/
 }
 
-Pixmap MakeModulaBitmap(), ReadBitmapFile();
-XColor NameToXColor();
-unsigned long NameToPixel();
-Cursor CreateCursorFromName();
 
+int
 main(argc, argv) 
     int argc;
     char **argv;
@@ -310,6 +318,7 @@
 
 
 /* Free past incarnation if needed, and retain state if needed. */
+void
 FixupState()
 {
     Atom prop, type;
@@ -345,6 +354,7 @@
  * SetBackgroundToBitmap: Set the root window background to a caller supplied 
  *                        bitmap.
  */
+void
 SetBackgroundToBitmap(bitmap, width, height)
     Pixmap bitmap;
     unsigned int width, height;
@@ -382,6 +392,7 @@
  */
 #define BITMAP_HOT_DEFAULT 8
 
+Cursor
 CreateCursorFromFiles(cursor_file, mask_file)
     char *cursor_file, *mask_file;
 {