-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 4fa727084893a7964b904b8f893c3c18a4aa3c9d: path_to: revision_to:
commit 4fa727084893a7964b904b8f893c3c18a4aa3c9d Author: Marc Lehmann <schmorp@schmorp.de> Date: Fri Jun 8 20:35:43 2012 +0000 *** empty log message *** diff --git a/src/perl/background b/src/perl/background
--- a/src/perl/background +++ b/src/perl/background @@ -538,7 +538,7 @@ Adjusts the I<contrast> of an image. $a = 1 if @_ < 5; $img = $img->clone; -# $img->contrast ($r, $g, $b, $a); + $img->contrast ($r, $g, $b, $a); $img } diff --git a/src/rxvtimg.C b/src/rxvtimg.C
--- a/src/rxvtimg.C +++ b/src/rxvtimg.C @@ -333,7 +333,7 @@ create_xrender_mask (Display *dpy, Drawable drawable, Bool argb) } void -rxvt_img::brightness (unsigned short r, unsigned short g, unsigned short b, unsigned short a) +rxvt_img::brightness (uint16_t r, uint16_t g, uint16_t b, uint16_t a) { Display *dpy = s->display->dpy; Picture src = create_xrender_mask (dpy, pm, True); @@ -353,7 +353,7 @@ rxvt_img::brightness (unsigned short r, unsigned short g, unsigned short b, unsi } void -rxvt_img::contrast (unsigned short r, unsigned short g, unsigned short b, unsigned short a) +rxvt_img::contrast (uint16_t r, uint16_t g, uint16_t b, uint16_t a) { if (!(s->display->flags & DISPLAY_HAS_RENDER_MUL)) return; diff --git a/src/rxvtimg.h b/src/rxvtimg.h
--- a/src/rxvtimg.h +++ b/src/rxvtimg.h @@ -7,7 +7,7 @@ #if HAVE_IMG -#define float_to_component(d) ((d) * 65535.99) +#define float_to_component(d) (uint16_t)((d) * 65535.99) #include <X11/extensions/Xrender.h> @@ -66,8 +66,8 @@ public: void unshare (); // prepare for write void fill (const rxvt_color &c); - void brightness (unsigned short r, unsigned short g, unsigned short b, unsigned short a); - void contrast (unsigned short r, unsigned short g, unsigned short b, unsigned short a); + void brightness (uint16_t r, uint16_t g, uint16_t b, uint16_t a); + void contrast (uint16_t r, uint16_t g, uint16_t b, uint16_t a); void brightness (double r, double g, double b, double a = 1.) {
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 11:11:17 2024