summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2010-06-22 08:36:40 -0700
committerJamey Sharp <jamey@minilop.net>2010-06-22 08:36:40 -0700
commit2d377782abc64281b5fa44825d541a1541b19a10 (patch)
tree4b212e9efe3f05f37ee6683c5d8787de29168553
parent14b1561dac796c6ad05648e6857028a87acde9ef (diff)
Use new server API to find the root window.
Signed-off-by: Jamey Sharp <jamey@minilop.net>
-rw-r--r--src/gx_randr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gx_randr.c b/src/gx_randr.c
index 5a0b9f5..a3aa5e4 100644
--- a/src/gx_randr.c
+++ b/src/gx_randr.c
@@ -164,7 +164,11 @@ GXRandRSetMode(ScreenPtr pScreen,
int oldHeight = pScreen->height;
int oldmmWidth = pScreen->mmWidth;
int oldmmHeight = pScreen->mmHeight;
+#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 8
WindowPtr pRoot = WindowTable[pScreen->myNum];
+#else
+ WindowPtr pRoot = pScreen->root;
+#endif
DisplayModePtr currentMode = NULL;
Bool ret = TRUE;
PixmapPtr pspix = NULL;