summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTormod Volden <debian.tormod@gmail.com>2011-04-21 00:17:15 +0200
committerTormod Volden <debian.tormod@gmail.com>2011-04-21 21:49:13 +0200
commitd177ae0b11a1b47ce088cce8c3c6e0f94a706b5e (patch)
tree4be3410b40a3e8ad7b62969792f1cb4c6a0c3986
parent092d2aa5502d10b7f994003882202f2ffda5c9aa (diff)
savage: Fix &/&& typo in "magical" register setup
Found with CFLAGS=-Wlogical-op Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
-rw-r--r--src/savage_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/savage_driver.c b/src/savage_driver.c
index 6eb7dda..2b47c1d 100644
--- a/src/savage_driver.c
+++ b/src/savage_driver.c
@@ -2561,7 +2561,7 @@ static void SavageWriteMode(ScrnInfoPtr pScrn, vgaRegPtr vgaSavePtr,
(restore->refresh >= 75)
)
{
- if( cr6d && LCD_ACTIVE )
+ if( cr6d & LCD_ACTIVE )
cr79 = 0x05;
else
cr79 = 0x08;
@@ -2578,7 +2578,7 @@ static void SavageWriteMode(ScrnInfoPtr pScrn, vgaRegPtr vgaSavePtr,
*/
if( pScrn->displayWidth == 1024 )
{
- if( cr6d && LCD_ACTIVE )
+ if( cr6d & LCD_ACTIVE )
cr79 = 0x08;
else
cr79 = 0x0e;