summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/xfree86/drivers/ati/atipreinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'xc/programs/Xserver/hw/xfree86/drivers/ati/atipreinit.c')
-rw-r--r--xc/programs/Xserver/hw/xfree86/drivers/ati/atipreinit.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/drivers/ati/atipreinit.c b/xc/programs/Xserver/hw/xfree86/drivers/ati/atipreinit.c
index 9b072da5f..2c8908c3c 100644
--- a/xc/programs/Xserver/hw/xfree86/drivers/ati/atipreinit.c
+++ b/xc/programs/Xserver/hw/xfree86/drivers/ati/atipreinit.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/ati/atipreinit.c,v 1.44 2001/04/01 14:00:09 tsi Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/ati/atipreinit.c,v 1.47.2.1 2001/05/22 15:57:03 tsi Exp $ */
/*
* Copyright 1999 through 2001 by Marc Aurele La France (TSI @ UQV), tsi@xfree86.org
*
@@ -459,6 +459,7 @@ ATIPreInit
}
ConfiguredMonitor = NULL;
+ (void)memset(BIOS, 0, SizeOf(BIOS));
if (!(flags & PROBE_DETECT))
{
@@ -579,7 +580,6 @@ ATIPreInit
* If there is an ix86-style BIOS, ensure its initialisation entry point
* has been executed, and retrieve DDC and VBE information from it.
*/
- (void)memset(BIOS, 0, SizeOf(BIOS));
if (!(pInt10Module = xf86LoadSubModule(pScreenInfo, "int10")))
xf86DrvMsg(pScreenInfo->scrnIndex, X_WARNING,
"Unable to load int10 module.\n");
@@ -632,8 +632,11 @@ ATIPreInit
return TRUE;
}
- xf86PrintEDID(ConfiguredMonitor);
- xf86SetDDCproperties(pScreenInfo, ConfiguredMonitor);
+ if (ConfiguredMonitor)
+ {
+ xf86PrintEDID(ConfiguredMonitor);
+ xf86SetDDCproperties(pScreenInfo, ConfiguredMonitor);
+ }
/* DDC module is no longer needed at this point */
xf86UnloadSubModule(pDDCModule);