$NetBSD: patch-av,v 1.2 2025/12/18 13:12:06 nia 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.orig 1992-05-02 20:41:39.000000000 +0000 +++ ssetroot.c @@ -37,11 +37,22 @@ #include #include #include +#include #include +#include +#include #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 +69,7 @@ Pixmap save_pixmap = (Pixmap)None; int unsave_past = 0; Pixmap save_pixmap = (Pixmap)None; +void usage() { fprintf(stderr, "usage: %s [options]\n", program_name); @@ -79,11 +91,8 @@ usage() /*NOTREACHED*/ } -Pixmap MakeModulaBitmap(), ReadBitmapFile(); -XColor NameToXColor(); -unsigned long NameToPixel(); -Cursor CreateCursorFromName(); +int main(argc, argv) int argc; char **argv; @@ -310,6 +319,7 @@ main(argc, argv) /* Free past incarnation if needed, and retain state if needed. */ +void FixupState() { Atom prop, type; @@ -345,6 +355,7 @@ FixupState() * SetBackgroundToBitmap: Set the root window background to a caller supplied * bitmap. */ +void SetBackgroundToBitmap(bitmap, width, height) Pixmap bitmap; unsigned int width, height; @@ -382,6 +393,7 @@ SetBackgroundToBitmap(bitmap, width, height) */ #define BITMAP_HOT_DEFAULT 8 +Cursor CreateCursorFromFiles(cursor_file, mask_file) char *cursor_file, *mask_file; {