repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: ddb16e72b29dd2594269ff7feac8de4e8d4fedb6:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit ddb16e72b29dd2594269ff7feac8de4e8d4fedb6
Author: Emanuele Giaquinta 
Date:   Sat Dec 29 14:52:55 2007 +0000

    Remove use of isupper.

diff --git a/src/scrollbar.h b/src/scrollbar.h
index 53ac5957d95bb3dc46a88675a536628ab6df9e43..
index ..14454a2b5acdf7cd5269adcc16b84e964c7b8501 100644
--- a/src/scrollbar.h
+++ b/src/scrollbar.h
@@ -28,7 +28,7 @@ typedef struct {
 #define scrollbar_isMotion()    (scrollBar.state == 'm')
 #define scrollbar_isUp()        (scrollBar.state == 'U')
 #define scrollbar_isDn()        (scrollBar.state == 'D')
-#define scrollbar_isUpDn()      isupper (scrollBar.state)
+#define scrollbar_isUpDn()      (scrollbar_isUp () || scrollbar_isDn ())
 #define isScrollbarWindow(w)    (scrollBar.state && (w) == scrollBar.win)

 #define scrollbarnext_dnval()   (scrollBar.end + (scrollBar.width + 1))

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