Module Name: xsrc
Committed By: macallan
Date: Mon Aug 1 06:56:43 UTC 2022
Modified Files:
xsrc/external/mit/xf86-video-ati/dist/src: radeon_modes.c
Log Message:
sprinkle xf86SetModeDefaultName() since apparently xf86CVTMode() no longer
sets a mode's .name
now this works again on macppc
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
xsrc/external/mit/xf86-video-ati/dist/src/radeon_modes.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-ati/dist/src/radeon_modes.c
diff -u xsrc/external/mit/xf86-video-ati/dist/src/radeon_modes.c:1.4 xsrc/external/mit/xf86-video-ati/dist/src/radeon_modes.c:1.5
--- xsrc/external/mit/xf86-video-ati/dist/src/radeon_modes.c:1.4 Fri Jul 15 04:13:15 2022
+++ xsrc/external/mit/xf86-video-ati/dist/src/radeon_modes.c Mon Aug 1 06:56:42 2022
@@ -91,6 +91,7 @@ RADEONTVModes(xf86OutputPtr output)
/* just a place holder */
new = xf86CVTMode(800, 600, 60.00, FALSE, FALSE);
+ xf86SetModeDefaultName(new);
new->type = M_T_DRIVER | M_T_PREFERRED;
return new;
@@ -109,6 +110,7 @@ RADEONATOMTVModes(xf86OutputPtr output)
for (i = 0; i < 5; i++) {
new = xf86CVTMode(widths[i], heights[i], 60.0, FALSE, FALSE);
+ xf86SetModeDefaultName(new);
new->type = M_T_DRIVER;
@@ -180,6 +182,7 @@ static DisplayModePtr RADEONFPNativeMode
if (new) {
new->type = M_T_DRIVER | M_T_PREFERRED;
+ xf86SetModeDefaultName(new);
new->next = NULL;
new->prev = NULL;
@@ -295,6 +298,7 @@ static void RADEONAddScreenModes(xf86Out
}
new = xf86CVTMode(width, height, 60.0, FALSE, FALSE);
+ xf86SetModeDefaultName(new);
new->type |= M_T_USERDEF;
@@ -463,6 +467,7 @@ radeon_add_common_modes(xf86OutputPtr ou
}
new = xf86CVTMode(widths[i], heights[i], 60.0, FALSE, FALSE);
+ xf86SetModeDefaultName(new);
new->type = M_T_DRIVER;