[PATCH 4/9] randr: warning fix
Adam Jackson
ajax at redhat.com
Tue Oct 19 08:59:19 PDT 2010
xf86RandR.c: In function ‘xf86RandRSetConfig’:
xf86RandR.c:309: warning: ‘miPointerCurrentScreen’ is deprecated
(declared at ../../../mi/mipointer.h:114)
Signed-off-by: Adam Jackson <ajax at redhat.com>
---
hw/xfree86/common/xf86RandR.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/xfree86/common/xf86RandR.c b/hw/xfree86/common/xf86RandR.c
index d7ffff4..8015fb7 100644
--- a/hw/xfree86/common/xf86RandR.c
+++ b/hw/xfree86/common/xf86RandR.c
@@ -306,7 +306,7 @@ xf86RandRSetConfig (ScreenPtr pScreen,
/*
* Move the cursor back where it belongs; SwitchMode repositions it
*/
- if (pScreen == miPointerCurrentScreen ())
+ if (pScreen == miPointerGetScreen(inputInfo.pointer))
{
px = (px >= pScreen->width ? (pScreen->width - 1) : px);
py = (py >= pScreen->height ? (pScreen->height - 1) : py);
--
1.7.2.3
More information about the xorg-devel
mailing list