Module Name:    xsrc
Committed By:   macallan
Date:           Wed Jun  4 18:20:44 UTC 2014

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

Log Message:
don't bail if the video mode is something else than 1280x1024
1024x768 works fine


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 \
    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.9 xsrc/external/mit/xf86-video-newport/dist/src/newport_driver.c:1.10
--- xsrc/external/mit/xf86-video-newport/dist/src/newport_driver.c:1.9	Tue May 24 19:35:28 2011
+++ xsrc/external/mit/xf86-video-newport/dist/src/newport_driver.c	Wed Jun  4 18:20:44 2014
@@ -799,7 +799,8 @@ NewportModeInit(ScrnInfoPtr pScrn, Displ
 
 	width = mode->HDisplay;
 	height = mode->VDisplay;
-	if (width != 1280 || height != 1024) {
+	if ((width > 1280) || (width < 1024) ||
+	    (height < 768) || (height > 1024)) {
 		xf86DrvMsg(pScrn->scrnIndex, X_ERROR, \
 		"Width = %d and height = %d is not supported by by this driver\n", width, height);
 		return FALSE;

Reply via email to