1
/* xscreensaver, Copyright (c) 1999-2006 Jamie Zawinski <jwz@jwz.org>
1
/* xscreensaver, Copyright (c) 1999-2008 Jamie Zawinski <jwz@jwz.org>
3
3
* Permission to use, copy, modify, distribute, and sell this software and its
4
4
* documentation for any purpose is hereby granted without fee, provided that
120
120
int s = (t->size + t->thickness) / 2;
121
121
XPoint points[3];
123
points[0].x = 0; points[0].y = t->y - s;
124
points[1].x = t->x - s; points[1].y = t->y - s;
125
points[2].x = t->x - s; points[2].y = 0;
126
XDrawLines (st->dpy, w, t->gc, points, countof(points), CoordModeOrigin);
128
points[0].x = 0; points[0].y = t->y + s;
129
points[1].x = t->x - s; points[1].y = t->y + s;
130
points[2].x = t->x - s; points[2].y = t->max_size;
131
XDrawLines (st->dpy, w, t->gc, points, countof(points), CoordModeOrigin);
133
points[0].x = t->x + s; points[0].y = 0;
134
points[1].x = t->x + s; points[1].y = t->y - s;
135
points[2].x = t->max_size; points[2].y = t->y - s;
136
XDrawLines (st->dpy, w, t->gc, points, countof(points), CoordModeOrigin);
138
points[0].x = t->x + s; points[0].y = t->max_size;
139
points[1].x = t->x + s; points[1].y = t->y + s;
140
points[2].x = t->max_size; points[2].y = t->y + s;
141
XDrawLines (st->dpy, w, t->gc, points, countof(points), CoordModeOrigin);
125
points[0].x = 0; points[0].y = t->y - s;
126
points[1].x = t->x - s; points[1].y = t->y - s;
127
points[2].x = t->x - s; points[2].y = 0;
128
XDrawLines (st->dpy, w, t->gc, points, countof(points), CoordModeOrigin);
130
points[0].x = t->x + s; points[0].y = 0;
131
points[1].x = t->x + s; points[1].y = t->y - s;
132
points[2].x = t->max_size; points[2].y = t->y - s;
133
XDrawLines (st->dpy, w, t->gc, points, countof(points), CoordModeOrigin);
138
points[0].x = 0; points[0].y = t->y + s;
139
points[1].x = t->x - s; points[1].y = t->y + s;
140
points[2].x = t->x - s; points[2].y = t->max_size;
141
XDrawLines (st->dpy, w, t->gc, points, countof(points), CoordModeOrigin);
143
points[0].x = t->x + s; points[0].y = t->max_size;
144
points[1].x = t->x + s; points[1].y = t->y + s;
145
points[2].x = t->max_size; points[2].y = t->y + s;
146
XDrawLines (st->dpy, w, t->gc, points, countof(points), CoordModeOrigin);