diff options
author | Tormod Volden <debian.tormod@gmail.com> | 2012-05-09 23:59:48 +0200 |
---|---|---|
committer | Tormod Volden <debian.tormod@gmail.com> | 2012-05-20 21:50:14 +0200 |
commit | e36ed34fd70fbd3b2e9e45c7189896e2db47a476 (patch) | |
tree | 9f31900488f6d91479343fb5845f1c4ae229f336 | |
parent | 9ca570f54f7113fab5d6553c3fd3318b395b249a (diff) |
fixup: duoview 4: simplify action logic, easier to read
-rw-r--r-- | src/savage_vbe.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/savage_vbe.c b/src/savage_vbe.c index da201b5..2c8ecd0 100644 --- a/src/savage_vbe.c +++ b/src/savage_vbe.c @@ -353,15 +353,10 @@ int SavageCorrectDuoViewFlag(int iDevInfo, Bool bEnableActivate, setDuoView = TRUE; /* action logic */ - if (setDuoView == TRUE) { - if (bEnableActivate == TRUE) { + if (setDuoView && bEnableActivate) iDevInfo |= DUO_ON; - } - } else { /* setDuoView == FALSE */ - if (bEnableDeactivate == TRUE) { + if (!setDuoView && bEnableDeactivate) iDevInfo &= ~DUO_ON; - } - } return iDevInfo; } |