… | |
… | |
356 | unshare (); |
356 | unshare (); |
357 | |
357 | |
358 | Display *dpy = s->display->dpy; |
358 | Display *dpy = s->display->dpy; |
359 | Picture dst = XRenderCreatePicture (dpy, pm, format, 0, 0); |
359 | Picture dst = XRenderCreatePicture (dpy, pm, format, 0, 0); |
360 | |
360 | |
|
|
361 | // loop should not be needed for brightness, as only -1..1 makes sense |
|
|
362 | |
361 | while (r | g | b | a) |
363 | while (r | g | b | a) |
362 | { |
364 | { |
363 | unsigned short xr, xg, xb, xa; |
365 | unsigned short xr, xg, xb, xa; |
364 | XRenderColor mask_c; |
366 | XRenderColor mask_c; |
365 | |
367 | |