summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Juergen Mauser <hjmauser@gmx.net>2012-05-27 19:56:56 +0200
committerTormod Volden <debian.tormod@gmail.com>2012-05-27 20:09:55 +0200
commitf7949c6f6484d1d4c4552ee4e762d6c2cb5469df (patch)
tree76aa93116560b8382f56d819eae125f0522047a0
parent11df81cc3330b6e3886a512995e8ed0d7cd5e173 (diff)
Change CrtOnly detection to ignore CRT status
The flag is now set if no other output device is active, ignoring the original status of the CRT output. Signed-off-by: Hans-Juergen Mauser <hjmauser@gmx.net> [Tormod: split out from an big diff] Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
-rw-r--r--src/savage_vbe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/savage_vbe.c b/src/savage_vbe.c
index f99ec69..d22b560 100644
--- a/src/savage_vbe.c
+++ b/src/savage_vbe.c
@@ -174,7 +174,8 @@ SavageSetVESAMode( SavagePtr psav, int n, int Refresh )
psav->iDevInfo = SavageGetDevice( psav );
iDevInfo = psav->iDevInfo;
psav->TvOn = ((iDevInfo & TV_ACTIVE) != 0);
- psav->CrtOnly = (iDevInfo == CRT_ACTIVE);
+ /* set CRT flag if no other output is active */
+ psav->CrtOnly = ((iDevInfo & ((unsigned char) ~CRT_ACTIVE)) == 0);
}
/* Now, make this mode current. */