freebsd-ports/x11-servers/xorg-server/files/patch-xf86fbman.c
Dejan Lesjak ab67e24779 Fix problem with XVideo (insufficient resources for operation). [1]
Use correct prototype for sysarch(2). [2]

PR:		ports/70317 [1],  ports/71037 [2]
Submitted by:	Andrew Elmore (aelmore at interwoven.com) [2]
Approved by:	anholt (mentor)
Obtained from:	Free Desktop.Org Bugzilla #474 [1]
2004-09-02 21:46:08 +00:00

17 lines
484 B
C

--- programs/Xserver/hw/xfree86/common/xf86fbman.c.orig Wed Nov 26 23:48:58 2003
+++ programs/Xserver/hw/xfree86/common/xf86fbman.c Wed Sep 1 21:15:58 2004
@@ -1095,12 +1095,10 @@
*size = 0;
- if (!offman->LinearAreas) return FALSE;
-
pLink = offman->LinearAreas;
- pLinkRet = pLink;
- if (!pLink->area) {
+ if (pLink && !pLink->area) {
+ pLinkRet = pLink;
while (pLink) {
if (pLink->free) {
if (pLink->linear.size > pLinkRet->linear.size)