Compatibility with xserver 1.20

This commit is contained in:
matthieu 2019-07-27 07:46:01 +00:00
parent 7a92c4a4d9
commit 47fb7c8d96
3 changed files with 5 additions and 0 deletions

View File

@ -2631,11 +2631,13 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL)
case 16: refreshArea = NVRefreshArea16; break; case 16: refreshArea = NVRefreshArea16; break;
case 32: refreshArea = NVRefreshArea32; break; case 32: refreshArea = NVRefreshArea32; break;
} }
#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,19,99,1,0)
if(!pNv->RandRRotation) { if(!pNv->RandRRotation) {
xf86DisableRandR(); xf86DisableRandR();
xf86DrvMsg(pScrn->scrnIndex, X_INFO, xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Driver rotation enabled, RandR disabled\n"); "Driver rotation enabled, RandR disabled\n");
} }
#endif
} }
pNv->refreshArea = refreshArea; pNv->refreshArea = refreshArea;
NVShadowInit(pScreen); NVShadowInit(pScreen);

View File

@ -1210,9 +1210,11 @@ RivaScreenInit(SCREEN_INIT_ARGS_DECL)
case 16: refreshArea = RivaRefreshArea16; break; case 16: refreshArea = RivaRefreshArea16; break;
case 32: refreshArea = RivaRefreshArea32; break; case 32: refreshArea = RivaRefreshArea32; break;
} }
#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,19,99,1,0)
xf86DisableRandR(); xf86DisableRandR();
xf86DrvMsg(pScrn->scrnIndex, X_INFO, xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Driver rotation enabled, RandR disabled\n"); "Driver rotation enabled, RandR disabled\n");
#endif
} }
ShadowFBInit(pScreen, refreshArea); ShadowFBInit(pScreen, refreshArea);

View File

@ -25,6 +25,7 @@
#include "micmap.h" #include "micmap.h"
#include "xf86DDC.h" #include "xf86DDC.h"
#include "xf86Modes.h"
#include "vbe.h" #include "vbe.h"