diff options
author | <alex@samba.(none)> | 2006-07-20 22:50:43 -0400 |
---|---|---|
committer | <alex@samba.(none)> | 2006-07-20 22:50:43 -0400 |
commit | 876f90e0fe06cedde15eb30e881824f126352bd9 (patch) | |
tree | c11e30cc59c0dbc6e468b1caceaf9b5dfcd00251 | |
parent | 3814db881be50faf0daf83b45ef23baeeef5b021 (diff) |
Make sure CLUTs are enabled
-rw-r--r-- | src/savage_driver.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/savage_driver.c b/src/savage_driver.c index d2725ec..9b8e4a0 100644 --- a/src/savage_driver.c +++ b/src/savage_driver.c @@ -4054,10 +4054,20 @@ void SavageLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indicies, /* choose CLUT */ if (psav->IsPrimary) { + /* enable CLUT 1 */ + VGAOUT8(0x3c4, 0x21); + byte = VGAIN8(0x3c5); + VGAOUT8(0x3c5, (byte & ~0x01)); + /* select CLUT 1 */ VGAOUT8(0x3c4, 0x47); byte = VGAIN8(0x3c5); VGAOUT8(0x3c5, (byte & ~0x03) | 0x01); /* CLUT 1 */ } else if (psav->IsSecondary) { + /* enable CLUT 2 */ + VGAOUT8(0x3c4, 0x21); + byte = VGAIN8(0x3c5); + VGAOUT8(0x3c5, (byte & ~0x10)); + /* select CLUT 2 */ VGAOUT8(0x3c4, 0x47); byte = VGAIN8(0x3c5); VGAOUT8(0x3c5, (byte & ~0x03) | 0x02); /* CLUT 2 */ |