diff options
author | Keith Packard <keithp@guitar.keithp.com> | 2006-09-20 22:38:55 -0700 |
---|---|---|
committer | Keith Packard <keithp@guitar.keithp.com> | 2006-09-20 22:38:55 -0700 |
commit | f6500e94fec0d6db8c1f1350bee1d137bf06a09e (patch) | |
tree | a26330810dec0fe897bf09dd28ed0b1f8fa2e291 /src/i830_modes.c | |
parent | cbaf3cf74bd420533d299c4113761ec536097e33 (diff) |
Update driver for RandR 1.2 X server API.
This is not entirely what I'd like to see, but it's at least functional.
Limitations:
Can't disable/enable crtcs
Can't move outputs on/off crtcs
But, it does handle monitor hot-plug, detecting changes in VGA and SDVO
status on-the fly. Which makes for good demo material.
Diffstat (limited to 'src/i830_modes.c')
-rw-r--r-- | src/i830_modes.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/i830_modes.c b/src/i830_modes.c index 6bff1d0a..3b70d5d4 100644 --- a/src/i830_modes.c +++ b/src/i830_modes.c @@ -954,6 +954,11 @@ I830ValidateXF86ModeList(ScrnInfoPtr pScrn, Bool first_time) maxY = mode->VDisplay; } } + /* let the user specify a bigger virtual size if they like */ + if (pScrn->display->virtualX > maxX) + maxX = pScrn->display->virtualX; + if (pScrn->display->virtualY > maxY) + maxY = pScrn->display->virtualY; pScrn->virtualX = maxX; pScrn->virtualY = maxY; pScrn->displayWidth = (maxX + 63) & ~63; |