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