summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@benzedrine.nwnk.net>2006-08-11 16:02:28 -0400
committerAdam Jackson <ajax@benzedrine.nwnk.net>2006-08-11 16:02:28 -0400
commit98372d0f94a9d658a7257d2199ef37a2449b9961 (patch)
treed9b791f2106586925e194680451cbd2334e41766
parent43ec66396f805aba87017d193d97a03372c29909 (diff)
Replace panel message + MODE_BAD with MODE_PANEL.
-rw-r--r--src/nv_driver.c11
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);
}