diff options
-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; } |