-- 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: 36da59c4a9dfd48769e81c366523a234139e7565:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

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

commit 36da59c4a9dfd48769e81c366523a234139e7565
Author: Marc Lehmann <schmorp@schmorp.de>
Date:   Tue Jan 31 20:07:18 2006 +0000

    *** empty log message ***

diff --git a/src/feature.h b/src/feature.h

index 52f40abaa9a2706b8380e5b03b31c53c0bb04591..

index ..a0cbc33ddc0f313f7268652ec1d86d1dee279bc4 100644

--- a/src/feature.h
+++ b/src/feature.h
@@ -299,6 +299,11 @@
 #define SB_WIDTH_MINIMUM 	5
 #define SB_WIDTH_MAXIMUM 	100

+/*
+ * rxvt scrollbar shadow width in pixels, must be 1 or 2
+ */
+#define SHADOW_WIDTH 1
+
 /*
  * When using Rxvt scrollbar, clicking above or below the slider will move
  * 1/4 of the screen height, if possible.  Setting RXVT_SCROLL_FULL will move
diff --git a/src/scrollbar-rxvt.C b/src/scrollbar-rxvt.C

index 65288da1e5aea29a6aded562481eedb021c97deb..

index ..2bf6935db904c74cafd9016c651482801802f658 100644

--- a/src/scrollbar-rxvt.C
+++ b/src/scrollbar-rxvt.C
@@ -27,8 +27,6 @@
 /*----------------------------------------------------------------------*/
 #if defined(RXVT_SCROLLBAR)

-#define SHADOW_WIDTH 1
-
 static void
 draw_shadow (rxvt_term *term, int x, int y, int w, int h)
 {
@@ -40,10 +38,10 @@ draw_shadow (rxvt_term *term, int x, int y, int w, int h)

   for (; shadow-- > 0; x++, y++, w--, h--)
     {
-      XDrawLine (term->xdisp, term->scrollBar.win, term->topShadowGC, x, y, w, y);
-      XDrawLine (term->xdisp, term->scrollBar.win, term->topShadowGC, x, y, x, h);
-      XDrawLine (term->xdisp, term->scrollBar.win, term->botShadowGC, w, h, w, y + 1);
-      XDrawLine (term->xdisp, term->scrollBar.win, term->botShadowGC, w, h, x + 1, h);
+      XDrawLine (term->xdisp, term->scrollBar.win, term->topShadowGC, x, y, w    , y    );
+      XDrawLine (term->xdisp, term->scrollBar.win, term->topShadowGC, x, y, x    , h    );
+      XDrawLine (term->xdisp, term->scrollBar.win, term->botShadowGC, w, h, w    , y + 1);
+      XDrawLine (term->xdisp, term->scrollBar.win, term->botShadowGC, w, h, x + 1, h    );
     }
 }

@@ -57,6 +55,7 @@ draw_button (rxvt_term *term, int x, int y, int state, int dirn)

   sz = term->scrollBar.width;
   sz2 = sz / 2;
+
   switch (state)
     {
       case +1:
@@ -76,6 +75,7 @@ draw_button (rxvt_term *term, int x, int y, int state, int dirn)
   pt[0].x = x;
   pt[1].x = x + sz - 1;
   pt[2].x = x + sz2;
+
   if (dirn == UP)
     {
       pt[0].y = pt[1].y = y + sz - 1;
diff --git a/src/scrollbar.C b/src/scrollbar.C

index ab97a36cebd02e1363ee201b42dd2f46b18a2d2c..

index ..bb426366752efb3f7d6316f0204376bab2a2b91e 100644

--- a/src/scrollbar.C
+++ b/src/scrollbar.C
@@ -34,7 +34,7 @@
 int
 rxvt_term::scrollbar_mapping (int map)
 {
-  int             change = 0;
+  int change = 0;

 #ifdef HAVE_SCROLLBARS
   if (map)
@@ -57,6 +57,7 @@ rxvt_term::scrollbar_mapping (int map)
       change = 1;
     }
 #endif
+
   return change;
 }

@@ -230,7 +231,7 @@ rxvt_term::setup_scrollbar (const char *scrollalign, const char *scrollstyle, co

 # ifdef RXVT_SCROLLBAR
   if (! OPTION (Opt_scrollBar_floating) && style == R_SB_RXVT)
-    sb_shadow = 2;
+    sb_shadow = SHADOW_WIDTH;
 # endif

   scrollBar.style = style;

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 13:16:44 2024