diff options
author | Alex Villacís Lasso <a_villacis@palosanto.com> | 2008-01-19 12:06:25 -0500 |
---|---|---|
committer | Alex Deucher <alex@botch2.(none)> | 2008-01-19 12:06:25 -0500 |
commit | ce182d1883bba35491858b47291c8240441443d0 (patch) | |
tree | 3fc1b8f6b8ad884e7cf12a10aee09774bc46b55f /src/savage_video.c | |
parent | 88141fd21214c501cafed73b1bba084b8a2bb929 (diff) |
Fix ambiguous operator precedence
In the modified lines, the logical-not binds first to psav->videoFlags,
not to (psav->videoFlags & VF_STREAMS_ON). If more flags are ever
implemented, they could interfere with this check. More of a preventive
patch than anything else.
Diffstat (limited to 'src/savage_video.c')
-rw-r--r-- | src/savage_video.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/savage_video.c b/src/savage_video.c index 64dcef1..45b082b 100644 --- a/src/savage_video.c +++ b/src/savage_video.c @@ -1469,7 +1469,7 @@ SavageDisplayVideoOld( if( psav->videoFourCC != id ) SavageStreamsOff(pScrn); - if( !psav->videoFlags & VF_STREAMS_ON ) + if( !(psav->videoFlags & VF_STREAMS_ON) ) { SavageSetBlend(pScrn,id); SavageStreamsOn(pScrn); @@ -1612,7 +1612,7 @@ SavageDisplayVideoNew( if( psav->videoFourCC != id ) SavageStreamsOff(pScrn); - if( !psav->videoFlags & VF_STREAMS_ON ) + if( !(psav->videoFlags & VF_STREAMS_ON) ) { SavageSetBlend(pScrn,id); SavageStreamsOn(pScrn); @@ -1746,7 +1746,7 @@ SavageDisplayVideo2000( if( psav->videoFourCC != id ) SavageStreamsOff(pScrn); - if( !psav->videoFlags & VF_STREAMS_ON ) + if( !(psav->videoFlags & VF_STREAMS_ON) ) { SavageSetBlend(pScrn,id); SavageStreamsOn(pScrn); |