From 48e5092e30b15e3bcc1571537f30d103fbc1169e Mon Sep 17 00:00:00 2001 From: root Date: Mon, 16 Jan 2006 18:09:28 +0000 Subject: [PATCH] *** empty log message *** --- src/rxvt.h | 1 - src/scrollbar-rxvt.C | 13 +++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/rxvt.h b/src/rxvt.h index daf0b2d5..83775f54 100644 --- a/src/rxvt.h +++ b/src/rxvt.h @@ -1497,7 +1497,6 @@ struct rxvt_term : zero_initialized, rxvt_vars { #if defined(RXVT_SCROLLBAR) // scrollbar-rxvt.C - void Draw_button (int x, int y, int state, int dirn); int scrollbar_show_rxvt (int update, int last_top, int last_bot, int scrollbar_len); #endif diff --git a/src/scrollbar-rxvt.C b/src/scrollbar-rxvt.C index 740603ce..f87e421d 100644 --- a/src/scrollbar-rxvt.C +++ b/src/scrollbar-rxvt.C @@ -29,22 +29,23 @@ #define SHADOW_WIDTH 1 -static void +static void draw_shadow (rxvt_term *term, int x, int y, int w, int h) -{ +{ int shadow; - + shadow = (w == 0 || h == 0) ? 1 : SHADOW_WIDTH; w += x - 1; h += y - 1; + for (; shadow-- > 0; x++, y++, w--, h--) - { + { XDrawLine (term->display->display, term->scrollBar.win, term->topShadowGC, x, y, w, y); XDrawLine (term->display->display, term->scrollBar.win, term->topShadowGC, x, y, x, h); XDrawLine (term->display->display, term->scrollBar.win, term->botShadowGC, w, h, w, y + 1); XDrawLine (term->display->display, term->scrollBar.win, term->botShadowGC, w, h, x + 1, h); - } -} + } +} /* draw triangular button with a shadow of 2 pixels */ static void -- 2.34.1