diff options
author | Adam Jackson <ajax@benzedrine.nwnk.net> | 2006-08-11 16:02:28 -0400 |
---|---|---|
committer | Adam Jackson <ajax@benzedrine.nwnk.net> | 2006-08-11 16:02:28 -0400 |
commit | 98372d0f94a9d658a7257d2199ef37a2449b9961 (patch) | |
tree | d9b791f2106586925e194680451cbd2334e41766 /src/nv_driver.c | |
parent | 43ec66396f805aba87017d193d97a03372c29909 (diff) |
Replace panel message + MODE_BAD with MODE_PANEL.
Diffstat (limited to 'src/nv_driver.c')
-rw-r--r-- | src/nv_driver.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c index f094e6b..cb759be 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -953,14 +953,9 @@ NVValidMode(int scrnIndex, DisplayModePtr mode, Bool verbose, int flags) { NVPtr pNv = NVPTR(xf86Screens[scrnIndex]); - if(pNv->fpWidth && pNv->fpHeight) { - if((pNv->fpWidth < mode->HDisplay) || (pNv->fpHeight < mode->VDisplay)) { - xf86DrvMsg(scrnIndex, X_INFO, "Mode \"%s\" is larger than " - "BIOS programmed panel size of %d x %d. Removing.\n", - mode->name, pNv->fpWidth, pNv->fpHeight); - return (MODE_BAD); - } - } + if(pNv->fpWidth && pNv->fpHeight) + if((pNv->fpWidth < mode->HDisplay) || (pNv->fpHeight < mode->VDisplay)) + return (MODE_PANEL); return (MODE_OK); } |