mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-09 10:48:48 +00:00
Compatibility with xserver 1.20
This commit is contained in:
@@ -2631,11 +2631,13 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL)
|
||||
case 16: refreshArea = NVRefreshArea16; break;
|
||||
case 32: refreshArea = NVRefreshArea32; break;
|
||||
}
|
||||
#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,19,99,1,0)
|
||||
if(!pNv->RandRRotation) {
|
||||
xf86DisableRandR();
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
|
||||
"Driver rotation enabled, RandR disabled\n");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
pNv->refreshArea = refreshArea;
|
||||
NVShadowInit(pScreen);
|
||||
|
||||
@@ -1210,9 +1210,11 @@ RivaScreenInit(SCREEN_INIT_ARGS_DECL)
|
||||
case 16: refreshArea = RivaRefreshArea16; break;
|
||||
case 32: refreshArea = RivaRefreshArea32; break;
|
||||
}
|
||||
#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,19,99,1,0)
|
||||
xf86DisableRandR();
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
|
||||
"Driver rotation enabled, RandR disabled\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
ShadowFBInit(pScreen, refreshArea);
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "micmap.h"
|
||||
|
||||
#include "xf86DDC.h"
|
||||
#include "xf86Modes.h"
|
||||
|
||||
#include "vbe.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user