-- 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:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

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

index 6156e23c92e1c3334661eb02c608f112aa832f87..

index ..d02f80bdb77616eb74e76b77c051a403f839d13a 100644

--- 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

index df76a5c82cd599df19c497f9e47487cce39ad652..

index ..9f2cb141c4457d396ea180333456c3cc20f2f02a 100644

--- 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

index 80162ba1d44dcf1b5a3dc35105301892736ed7d0..

index ..75de0d0d10946ca01e998ce8af18ec84b922bf95 100644

--- 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