1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/x11/XFree86-4/files/patch-m
Jean-Marc Zucconi 524cbcbb57 Fix crashes of 'XFree86-4 -configure' on systems with i810 video
PR:		ports/22386
Submitted by:	Jay Krell <jay.krell@cornell.edu>
2000-11-03 16:36:14 +00:00

23 lines
771 B
Plaintext

--- programs/Xserver/hw/xfree86/drivers/i810/i810_driver.c.1 Sat Oct 28 21:59:54 2000
+++ programs/Xserver/hw/xfree86/drivers/i810/i810_driver.c Sat Oct 28 22:03:34 2000
@@ -391,6 +391,9 @@
devSections, numDevSections,
drv, &usedChips);
+ if (flags & PROBE_DETECT)
+ foundScreen = TRUE;
+ else
for (i=0; i<numUsed; i++) {
ScrnInfoPtr pScrn = NULL;
/* Allocate new ScrnInfoRec and claim the slot */
@@ -435,6 +438,8 @@
char *mod=0, *reqSym=0;
int flags24;
rgb defaultWeight = {0, 0, 0};
+
+ if (flags & PROBE_DETECT) return FALSE;
if (pScrn->numEntities != 1) return FALSE;