… | |
… | |
354 | |
354 | |
355 | void |
355 | void |
356 | rxvt_img::contrast (uint16_t r, uint16_t g, uint16_t b, uint16_t a) |
356 | rxvt_img::contrast (uint16_t r, uint16_t g, uint16_t b, uint16_t a) |
357 | { |
357 | { |
358 | if (!(s->display->flags & DISPLAY_HAS_RENDER_MUL)) |
358 | if (!(s->display->flags & DISPLAY_HAS_RENDER_MUL)) |
|
|
359 | { |
|
|
360 | rxvt_warn ("rxvt_img::contrast operation not supported on this display, RENDER extension too old.\n"); |
359 | return; |
361 | return; |
|
|
362 | } |
360 | |
363 | |
361 | Display *dpy = s->display->dpy; |
364 | Display *dpy = s->display->dpy; |
362 | Picture src = create_xrender_mask (dpy, pm, True); |
365 | Picture src = create_xrender_mask (dpy, pm, True); |
363 | Picture dst = XRenderCreatePicture (dpy, pm, format, 0, 0); |
366 | Picture dst = XRenderCreatePicture (dpy, pm, format, 0, 0); |
364 | |
367 | |