summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-01-30 12:07:29 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-01-30 12:09:32 -0800
commitf2a520f6fcbd226af852dfac0d75cfb66804a496 (patch)
tree9544e23af44a324daa01c6eee53f0ec5fcd84546
parent2e49cdf4332521a2934eb5c61ff2d1585f474fa5 (diff)
Stop using maxHValue and maxVValue from ScrnInfoRec
They were removed by xorg/xserver@5a945f54, breaking the build of this driver. Patch by @rjbrown99 from #2 Fixes: #2 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/tseng_driver.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tseng_driver.c b/src/tseng_driver.c
index 2ccc6d3..6c56da3 100644
--- a/src/tseng_driver.c
+++ b/src/tseng_driver.c
@@ -1037,10 +1037,6 @@ TsengPreInit(ScrnInfoPtr pScrn, int flags)
else
pTseng->Bytesperpixel = 1; /* this is fake for < 8bpp, but simplifies other code */
- /* hardware limits */
- pScrn->maxHValue = Tseng_HMAX;
- pScrn->maxVValue = Tseng_VMAX;
-
/*
* This must happen after pScrn->display has been set because
* xf86SetWeight references it.
@@ -1133,8 +1129,8 @@ TsengPreInit(ScrnInfoPtr pScrn, int flags)
/* Select valid modes from those available */
i = xf86ValidateModes(pScrn, pScrn->monitor->Modes,
pScrn->display->modes, &pTseng->clockRange,
- NULL, 32, pScrn->maxHValue, 8*pTseng->Bytesperpixel, /* H limits */
- 0, pScrn->maxVValue, /* V limits */
+ NULL, 32, Tseng_HMAX, 8*pTseng->Bytesperpixel, /* H limits */
+ 0, Tseng_VMAX, /* V limits */
pScrn->display->virtualX,
pScrn->display->virtualY,
pTseng->FbMapSize,