Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/xf86-video-nv/dist/src if we add a mode for t...



details:   https://anonhg.NetBSD.org/xsrc/rev/5792d730a31c
branches:  trunk
changeset: 7119:5792d730a31c
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Jul 28 06:32:35 2022 +0000

description:
if we add a mode for the DFP port, make sure it has a name so we don't crash
later on
now this works again on my 12" powerbook

diffstat:

 external/mit/xf86-video-nv/dist/src/nv_driver.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r f8c73a113fbb -r 5792d730a31c external/mit/xf86-video-nv/dist/src/nv_driver.c
--- a/external/mit/xf86-video-nv/dist/src/nv_driver.c   Wed Jul 20 23:15:32 2022 +0000
+++ b/external/mit/xf86-video-nv/dist/src/nv_driver.c   Thu Jul 28 06:32:35 2022 +0000
@@ -1933,6 +1933,8 @@
 
        Mode = xf86CVTMode(pNv->fpWidth, pNv->fpHeight, 60.00, TRUE, FALSE);
        Mode->type = M_T_DRIVER;
+       xf86SetModeDefaultName(Mode);
+
        pScrn->monitor->Modes = NVModesAdd(pScrn->monitor->Modes, Mode);
 
        if (!config_mon_rates) {



Home | Main Index | Thread Index | Old Index