summaryrefslogtreecommitdiff
path: root/src/mga_dga.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2004-06-16 09:23:24 +0000
committerEric Anholt <anholt@freebsd.org>2004-06-16 09:23:24 +0000
commit7cbb9f870b020742a254f1e9aadd0209b1f0a876 (patch)
tree9073a10b01308b5925b2969f828e755be1fffa22 /src/mga_dga.c
parent9dd51de1d530c6081333d30f945afb6d9208a77f (diff)
DRI XFree86-4_3_99_12-merge importDRI-XFree86-4_3_99_12-merge
Diffstat (limited to 'src/mga_dga.c')
-rw-r--r--src/mga_dga.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/src/mga_dga.c b/src/mga_dga.c
index 774aafd..d6735b1 100644
--- a/src/mga_dga.c
+++ b/src/mga_dga.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dga.c,v 1.14 1999/11/02 23:12:00 mvojkovi Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dga.c,v 1.16 2002/09/16 18:05:55 eich Exp $ */
#include "xf86.h"
#include "xf86_OSproc.h"
@@ -264,30 +264,6 @@ BitsSet(unsigned long data)
return set;
}
-/*
- * This is not strictly required - but it will load a 'sane'
- * palette when starting DGA.
- */
-static void
-mgaDGASetPalette(ScrnInfoPtr pScrn)
-{
- MGAPtr pMga = MGAPTR(pScrn);
- MGARamdacPtr MGAdac = &pMga->Dac;
- unsigned char DAC[256*3];
- int i;
-
- if (!MGAdac->RestorePalette)
- return;
-
- for (i = 0; i < 256; i++) {
- DAC[i*3] = i;
- DAC[i*3 + 1] = i;
- DAC[i*3 + 2] = i;
- }
- MGAdac->RestorePalette(pScrn, DAC);
-}
-
-
static Bool
MGA_SetMode(
ScrnInfoPtr pScrn,
@@ -323,8 +299,6 @@ MGA_SetMode(
/* MGAModeInit() will set the mode field */
pScrn->SwitchMode(index, pMode->mode, 0);
- /* not strictly required but nice */
- mgaDGASetPalette(pScrn);
}
return TRUE;