[PATCH] Replace miPointerCurrentScreen with miPointerGetScreen.

Jamey Sharp jamey at minilop.net
Fri Oct 2 13:42:48 PDT 2009


miPointerCurrentScreen is deprecated. This patch amounts to inlining its
new implementation.

Signed-off-by: Jamey Sharp <jamey at minilop.net>
---
 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 02dcc34..807ce79 100644
--- a/hw/xfree86/common/xf86RandR.c
+++ b/hw/xfree86/common/xf86RandR.c
@@ -307,7 +307,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.6.3.3



More information about the xorg-devel mailing list