ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/scrollbar-rxvt.C
(Generate patch)

Comparing rxvt-unicode/src/scrollbar-rxvt.C (file contents):
Revision 1.34 by ayin, Mon Dec 31 15:45:29 2007 UTC vs.
Revision 1.35 by ayin, Wed Feb 6 01:29:19 2008 UTC

149int 149int
150rxvt_term::scrollbar_show_rxvt (int update, int last_top, int last_bot, int scrollbar_len) 150rxvt_term::scrollbar_show_rxvt (int update, int last_top, int last_bot, int scrollbar_len)
151{ 151{
152 int sbshadow = scrollBar.shadow; 152 int sbshadow = scrollBar.shadow;
153 int sbwidth = (int)scrollBar.width; 153 int sbwidth = (int)scrollBar.width;
154 int state;
154 155
155 if ((scrollBar.init & R_SB_RXVT) == 0) 156 if ((scrollBar.init & R_SB_RXVT) == 0)
156 { 157 {
157 XGCValues gcvalue; 158 XGCValues gcvalue;
158 159
215 216
216 /* shadow for scrollbar slider */ 217 /* shadow for scrollbar slider */
217 draw_shadow (this, sbshadow, scrollBar.top, sbwidth, scrollbar_len); 218 draw_shadow (this, sbshadow, scrollBar.top, sbwidth, scrollbar_len);
218 219
219 /* Redraw scrollbar arrows */ 220 /* Redraw scrollbar arrows */
221 state = scrollBar.state == STATE_UP ? -1 : +1;
220 draw_button (this, sbshadow, sbshadow, (scrollbar_isUp () ? -1 : +1), UP); 222 draw_button (this, sbshadow, sbshadow, state, UP);
223 state = scrollBar.state == STATE_DOWN ? -1 : +1;
221 draw_button (this, sbshadow, scrollBar.end + 1, (scrollbar_isDn () ? -1 : +1), DN); 224 draw_button (this, sbshadow, scrollBar.end + 1, state, DN);
222 225
223 return 1; 226 return 1;
224} 227}
225#endif /* RXVT_SCROLLBAR */ 228#endif /* RXVT_SCROLLBAR */
226/*----------------------- end-of-file (C source) -----------------------*/ 229/*----------------------- end-of-file (C source) -----------------------*/

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines