diff options
author | Tormod Volden <debian.tormod@gmail.com> | 2012-05-13 18:41:04 +0200 |
---|---|---|
committer | Tormod Volden <debian.tormod@gmail.com> | 2012-05-20 21:50:13 +0200 |
commit | ec81c54ab7e5b006e2740388ecda85555077179c (patch) | |
tree | 8d8d73859604813bbfa44265953d8cc08428b1a3 | |
parent | 2d3545d8b0e09f42095b141b3ef506aa82adff14 (diff) |
Make SavageGetDevice() return mask less magic
-rw-r--r-- | src/savage_vbe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/savage_vbe.c b/src/savage_vbe.c index f7fb8f2..0c19fd8 100644 --- a/src/savage_vbe.c +++ b/src/savage_vbe.c @@ -290,8 +290,7 @@ int SavageGetDevice( SavagePtr psav ) xf86ExecX86int10( psav->pVbe->pInt10 ); - /* obey the "dual" bit at the MSB position by adding 0x80 to the mask */ - return ((psav->pVbe->pInt10->cx) & 0x87); /* mask was 0xf, but active devices are only in the three lower bits */ + return (psav->pVbe->pInt10->cx) & (DUO_ON | ACTIVE_DEVICES); } /* Function to get TV format. */ |