diff options
author | Hans-Juergen Mauser <hjmauser@gmx.net> | 2012-05-09 10:11:31 +0200 |
---|---|---|
committer | Tormod Volden <debian.tormod@gmail.com> | 2012-05-27 20:50:30 +0200 |
commit | 553385faa386404d11f1a12e4e73ca967f4c6371 (patch) | |
tree | e68d3ada2858da33d00b83314d85c045327e2eb5 | |
parent | 89ce5370731745973be06426ad0bc045823c8143 (diff) |
Fix return mask in SavageGetDevice()
Do not strip away the "duoview" 0x80 flag returned on some models.
Also replace 0x0f with the less magic ACTIVE_DEVICES
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/savage_vbe.c b/src/savage_vbe.c index c2e6000..5576496 100644 --- a/src/savage_vbe.c +++ b/src/savage_vbe.c @@ -291,7 +291,7 @@ static int SavageGetDevice( SavagePtr psav ) xf86ExecX86int10( psav->pVbe->pInt10 ); - return ((psav->pVbe->pInt10->cx) & 0xf); + return (psav->pVbe->pInt10->cx) & (DUO_ON | ACTIVE_DEVICES); } /* Function to get TV format. */ |