Add support for on-the-fly screen rotation when supported by hardware (Aron

Plattner).
This commit is contained in:
Egbert Eich 2004-07-30 21:53:09 +00:00
commit d3c98fed2c
4 changed files with 42 additions and 10 deletions

View file

@ -222,7 +222,7 @@ xf86SwitchMode(ScreenPtr pScreen, DisplayModePtr mode)
if (mode == pScr->currentMode)
return TRUE;
if (mode->HDisplay > pScreen->width || mode->VDisplay > pScreen->height)
if (mode->HDisplay > pScr->virtualX || mode->VDisplay > pScr->virtualY)
return FALSE;
pCursorScreen = miPointerCurrentScreen();