Module Name:    xsrc
Committed By:   macallan
Date:           Thu Jun 25 00:59:58 UTC 2009

Modified Files:
        xsrc/external/mit/xf86-video-newport/dist/src: newport_driver.c

Log Message:
make this compile with new Xorg


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
    xsrc/external/mit/xf86-video-newport/dist/src/newport_driver.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xf86-video-newport/dist/src/newport_driver.c
diff -u xsrc/external/mit/xf86-video-newport/dist/src/newport_driver.c:1.3 xsrc/external/mit/xf86-video-newport/dist/src/newport_driver.c:1.4
--- xsrc/external/mit/xf86-video-newport/dist/src/newport_driver.c:1.3	Mon Feb 16 20:57:43 2009
+++ xsrc/external/mit/xf86-video-newport/dist/src/newport_driver.c	Thu Jun 25 00:59:57 2009
@@ -286,7 +286,7 @@
 						+ busID * NEWPORT_BASE_OFFSET);
 					RANGE(range[0], base, base + sizeof(NewportRegs),\
 							ResExcMemBlock);
-					pScrn = xf86ConfigIsaEntity(pScrn, 0, entity, NULL, range, \
+					pScrn = (void *)xf86ConfigIsaEntity(pScrn, 0, entity, NULL, range, \
 							NULL, NULL, NULL, NULL);
 					/* Allocate a ScrnInfoRec */
 					pScrn->driverVersion = NEWPORT_VERSION;
@@ -831,6 +831,8 @@
 		for (i = 0; i < 256; i++) {
 			col.red = col.green = col.blue = i;
 			NewportCmapSetRGB(NEWPORTREGSPTR(pScrn), i, col);
+			NewportCmapSetRGB(NEWPORTREGSPTR(pScrn), i + 256, col);
+			NewportCmapSetRGB(NEWPORTREGSPTR(pScrn), i + 512, col);
 		}
 	}
 	/* blank the framebuffer */

Reply via email to