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

Comparing rxvt-unicode/src/scrollbar.h (file contents):
Revision 1.28 by sf-exg, Thu Sep 1 08:11:27 2011 UTC vs.
Revision 1.30 by sf-exg, Tue Oct 2 10:29:12 2012 UTC

74 void setup (rxvt_term *); 74 void setup (rxvt_term *);
75 void resize (); 75 void resize ();
76 void map (int); 76 void map (int);
77 int show (int); 77 int show (int);
78 void destroy (); 78 void destroy ();
79 int color ();
79 80
80 bool upButton (int y) 81 bool upButton (int y)
81 { 82 {
82 if (style == SB_STYLE_NEXT) 83 if (style == SB_STYLE_NEXT)
83 return y > end && y <= end + width + 1; 84 return y > end && y <= end + width + 1;
97 { 98 {
98 return style == SB_STYLE_NEXT ? SB_THUMB_MIN_HEIGHT : 10; 99 return style == SB_STYLE_NEXT ? SB_THUMB_MIN_HEIGHT : 10;
99 } 100 }
100 int size () 101 int size ()
101 { 102 {
102 return max (end - beg - min_height (), 0); 103 return max (end - beg, 0);
103 } 104 }
104 int total_width () 105 int total_width ()
105 { 106 {
106 return width + shadow * 2; 107 return width + shadow * 2;
107 } 108 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines