From 4a3dbb926ae3f5410198d7cc4f4ebe4f62eebf05 Mon Sep 17 00:00:00 2001 From: marha Date: Sat, 25 Jul 2009 19:39:46 +0000 Subject: Added xorg-server-1.6.2.tar.gz --- xorg-server/hw/kdrive/ephyr/ephyrinit.c | 34 ++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) (limited to 'xorg-server/hw/kdrive/ephyr/ephyrinit.c') diff --git a/xorg-server/hw/kdrive/ephyr/ephyrinit.c b/xorg-server/hw/kdrive/ephyr/ephyrinit.c index 47ddb3d82..1399d7aaa 100644 --- a/xorg-server/hw/kdrive/ephyr/ephyrinit.c +++ b/xorg-server/hw/kdrive/ephyr/ephyrinit.c @@ -64,7 +64,7 @@ InitInput (int argc, char **argv) { KdKeyboardInfo *ki; KdPointerInfo *pi; - + KdAddKeyboardDriver(&EphyrKeyboardDriver); #ifdef linux KdAddKeyboardDriver(&LinuxEvdevKeyboardDriver); @@ -267,43 +267,51 @@ OsVendorInit (void) /* 'Fake' cursor stuff, could be improved */ static Bool -ephyrRealizeCursor(ScreenPtr pScreen, CursorPtr pCursor) +ephyrRealizeCursor(DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor) { return TRUE; } static Bool -ephyrUnrealizeCursor(ScreenPtr pScreen, CursorPtr pCursor) +ephyrUnrealizeCursor(DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor) { return TRUE; } static void -ephyrSetCursor(ScreenPtr pScreen, CursorPtr pCursor, int x, int y) +ephyrSetCursor(DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor, int x, int y) { ; } static void -ephyrMoveCursor(ScreenPtr pScreen, int x, int y) +ephyrMoveCursor(DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y) { ; } +static Bool +ephyrDeviceCursorInitialize(DeviceIntPtr pDev, ScreenPtr pScreen) +{ + return TRUE; +} + miPointerSpriteFuncRec EphyrPointerSpriteFuncs = { ephyrRealizeCursor, ephyrUnrealizeCursor, ephyrSetCursor, ephyrMoveCursor, + ephyrDeviceCursorInitialize, + NULL }; Bool ephyrCursorInit(ScreenPtr pScreen) { - miPointerInitialize(pScreen, + miPointerInitialize(pScreen, &EphyrPointerSpriteFuncs, - &ephyrPointerScreenFuncs, + &ephyrPointerScreenFuncs, FALSE); return TRUE; @@ -328,18 +336,18 @@ KdCardFuncs ephyrFuncs = { ephyrRestore, /* restore */ ephyrScreenFini, /* scrfini */ ephyrCardFini, /* cardfini */ - - 0, /* initCursor */ - 0, /* enableCursor */ + + 0, /* initCursor */ + 0, /* enableCursor */ 0, /* disableCursor */ 0, /* finiCursor */ 0, /* recolorCursor */ - + 0, /* initAccel */ 0, /* enableAccel */ 0, /* disableAccel */ 0, /* finiAccel */ - - ephyrGetColors, /* getColors */ + + ephyrGetColors,/* getColors */ ephyrPutColors, /* putColors */ }; -- cgit v1.2.3