You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
374 B
21 lines
374 B
3 years ago
|
static int invertcolors = 0;
|
||
|
|
||
|
void
|
||
|
invert(const Arg *dummy)
|
||
|
{
|
||
|
invertcolors = !invertcolors;
|
||
|
redraw();
|
||
|
}
|
||
|
|
||
|
Color
|
||
|
invertedcolor(Color *clr)
|
||
|
{
|
||
|
XRenderColor rc;
|
||
|
Color inverted;
|
||
|
rc.red = ~clr->color.red;
|
||
|
rc.green = ~clr->color.green;
|
||
|
rc.blue = ~clr->color.blue;
|
||
|
rc.alpha = clr->color.alpha;
|
||
|
XftColorAllocValue(xw.dpy, xw.vis, xw.cmap, &rc, &inverted);
|
||
|
return inverted;
|
||
|
}
|