diff options
author | Hans-Juergen Mauser <hjmauser@gmx.net> | 2012-05-27 19:56:56 +0200 |
---|---|---|
committer | Tormod Volden <debian.tormod@gmail.com> | 2012-05-27 20:09:55 +0200 |
commit | f7949c6f6484d1d4c4552ee4e762d6c2cb5469df (patch) | |
tree | 76aa93116560b8382f56d819eae125f0522047a0 | |
parent | 11df81cc3330b6e3886a512995e8ed0d7cd5e173 (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.c | 3 |
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. */ |