diff options
author | Hans-Juergen Mauser <hjmauser@gmx.net> | 2012-05-27 19:51:52 +0200 |
---|---|---|
committer | Tormod Volden <debian.tormod@gmail.com> | 2012-05-27 20:09:11 +0200 |
commit | 11df81cc3330b6e3886a512995e8ed0d7cd5e173 (patch) | |
tree | 377072a2343d74ceac5516131cb2bca5a426b4d7 | |
parent | 42a32b41ebb52e58c02bddddfde753d1974f6464 (diff) |
Unmagify active device bits
Signed-off-by: Hans-Juergen Mauser <hjmauser@gmx.net>
[Tormod: patch split out from a big diff]
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
-rw-r--r-- | src/savage_vbe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/savage_vbe.c b/src/savage_vbe.c index 948cb15..f99ec69 100644 --- a/src/savage_vbe.c +++ b/src/savage_vbe.c @@ -173,8 +173,8 @@ SavageSetVESAMode( SavagePtr psav, int n, int Refresh ) /* Re-fetch actual device set. */ psav->iDevInfo = SavageGetDevice( psav ); iDevInfo = psav->iDevInfo; - psav->CrtOnly = (iDevInfo == 1); - psav->TvOn = !!(iDevInfo & 4); + psav->TvOn = ((iDevInfo & TV_ACTIVE) != 0); + psav->CrtOnly = (iDevInfo == CRT_ACTIVE); } /* Now, make this mode current. */ |