This commit is contained in:
purplerain 2024-10-06 22:00:57 +00:00
parent 50c8bafd9f
commit ac06c97e30
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
820 changed files with 467502 additions and 386453 deletions

View file

@ -27,13 +27,13 @@ Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@ -46,7 +46,7 @@ SOFTWARE.
******************************************************************/
/*
* Kitchen sink version, useful for clearing small areas and flashing the
* Kitchen sink version, useful for clearing small areas and flashing the
* screen.
*/
@ -110,7 +110,7 @@ unknown_arg(const char *arg)
* for error, no, yes.
*/
static int
static int
parse_boolean_option(char *option)
{
static const struct _booltable {
@ -146,7 +146,7 @@ parse_boolean_option(char *option)
* whether or not the given string is an abbreviation of the arg.
*/
static Bool
static Bool
isabbreviation(const char *arg, char *s, size_t minslen)
{
size_t arglen;
@ -244,11 +244,11 @@ main(int argc, char *argv[])
}
else if (isabbreviation ("-help", arg, 1)) {
Syntax(EXIT_SUCCESS);
} else
} else
unknown_arg (arg);
} else if (arg[0] == '=') /* obsolete */
geom = arg;
else
else
unknown_arg (arg);
}
@ -287,24 +287,24 @@ main(int argc, char *argv[])
screen = DefaultScreen (dpy);
display_width = DisplayWidth (dpy, screen);
display_height = DisplayHeight (dpy, screen);
x = y = 0;
x = y = 0;
width = display_width;
height = display_height;
if (DisplayCells (dpy, screen) <= 2 && action == doSolid) {
if (strcmp (solidcolor, "black") == 0)
action = doBlack;
else if (strcmp (solidcolor, "white") == 0)
else if (strcmp (solidcolor, "white") == 0)
action = doWhite;
else {
fprintf (stderr,
fprintf (stderr,
"%s: can't use colors on a monochrome display.\n",
ProgramName);
action = doNone;
}
}
if (geom)
if (geom)
geom_result = XParseGeometry (geom, &x, &y,
(unsigned int *)&width,
(unsigned int *)&height);
@ -313,7 +313,7 @@ main(int argc, char *argv[])
/*
* For parsing geometry, we want to have the following
*
*
* = (0,0) for (display_width,display_height)
* =WxH+X+Y (X,Y) for (W,H)
* =WxH-X-Y (display_width-W-X,display_height-H-Y) for (W,H)
@ -321,7 +321,7 @@ main(int argc, char *argv[])
* =WxH (0,0) for (W,H)
* =-X-Y (0,0) for (display_width-X,display_height-Y)
*
* If we let any missing values be taken from (0,0) for
* If we let any missing values be taken from (0,0) for
* (display_width,display_height) we just have to deal with the
* negative offsets.
*/
@ -333,7 +333,7 @@ main(int argc, char *argv[])
width = display_width + x;
x = 0;
}
}
}
if (geom_result & YNegative) {
if (geom_result & HeightValue) {
y = display_height - height + y;
@ -385,7 +385,7 @@ main(int argc, char *argv[])
0, DefaultDepth(dpy, screen), InputOutput, &visual, mask, &xswa);
/*
* at some point, we really ought to go walk the tree and turn off
* at some point, we really ought to go walk the tree and turn off
* backing store; or do a ClearArea generating exposures on all windows
*/
XMapWindow (dpy, win);