Module Name:    xsrc
Committed By:   macallan
Date:           Mon Aug  1 22:19:41 UTC 2022

Modified Files:
        xsrc/external/mit/xf86-video-nouveau/dist/src: nv_driver.c

Log Message:
more xf86SetModeDefaultName( after xf86CVTMode()


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
    xsrc/external/mit/xf86-video-nouveau/dist/src/nv_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-nouveau/dist/src/nv_driver.c
diff -u xsrc/external/mit/xf86-video-nouveau/dist/src/nv_driver.c:1.4 xsrc/external/mit/xf86-video-nouveau/dist/src/nv_driver.c:1.5
--- xsrc/external/mit/xf86-video-nouveau/dist/src/nv_driver.c:1.4	Tue Apr 27 01:22:55 2021
+++ xsrc/external/mit/xf86-video-nouveau/dist/src/nv_driver.c	Mon Aug  1 22:19:41 2022
@@ -1227,10 +1227,13 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
 	nouveau_setup_capabilities(pScrn);
 
 	if (!pScrn->modes) {
-		pScrn->modes = xf86ModesAdd(pScrn->modes,
-			xf86CVTMode(pScrn->display->virtualX,
+		DisplayModePtr m;
+
+		m = xf86CVTMode(pScrn->display->virtualX,
 				    pScrn->display->virtualY,
-				    60, 0, 0));
+				    60, 0, 0);
+		xf86SetModeDefaultName(m);
+		pScrn->modes = xf86ModesAdd(pScrn->modes, m);
 	}
 
 	/* Set the current mode to the first in the list */

Reply via email to