diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2011-06-07 19:21:07 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2011-06-07 19:21:07 +0000 |
commit | 101e8ea35146f33b1e64bcbb5f26f5ea6882c866 (patch) | |
tree | 2d81b88fdaa36b79bda985cf5e9437330597d53b /app/xterm/scrollbar.c | |
parent | 1f97a8f8463e7b9aeb661f245025e2f24e22ef95 (diff) |
Update to xterm 270. Tested by ajacoutot@, shadchin@, krw@ and jasper@
Diffstat (limited to 'app/xterm/scrollbar.c')
-rw-r--r-- | app/xterm/scrollbar.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/app/xterm/scrollbar.c b/app/xterm/scrollbar.c index 37bdb36d3..ac00d7e94 100644 --- a/app/xterm/scrollbar.c +++ b/app/xterm/scrollbar.c @@ -1,4 +1,4 @@ -/* $XTermId: scrollbar.c,v 1.180 2011/02/17 00:50:23 tom Exp $ */ +/* $XTermId: scrollbar.c,v 1.181 2011/04/18 22:35:33 tom Exp $ */ /* * Copyright 2000-2010,2011 by Thomas E. Dickey @@ -286,8 +286,13 @@ ScrollBarReverseVideo(Widget scrollWidget) } sb->rv_active = !(sb->rv_active); - XtSetArg(args[!(sb->rv_active)], XtNbackground, sb->bg); - XtSetArg(args[(sb->rv_active)], XtNforeground, sb->fg); + if (sb->rv_active) { + XtSetArg(args[0], XtNbackground, sb->fg); + XtSetArg(args[1], XtNforeground, sb->bg); + } else { + XtSetArg(args[0], XtNbackground, sb->bg); + XtSetArg(args[1], XtNforeground, sb->fg); + } nargs = 2; /* don't set border_pixmap */ if (sb->bdpix == XtUnspecifiedPixmap) { /* if not pixmap then pixel */ |