Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[xsrc/trunk]: xsrc/external/mit/xorg-server.old/dist/hw/xfree86/ramdac ad pro...
details: https://anonhg.NetBSD.org/xsrc/rev/c7e79f864518
branches: trunk
changeset: 10067:c7e79f864518
user: christos <christos%NetBSD.org@localhost>
date: Wed Jan 02 02:56:43 2019 +0000
description:
ad provde the cursor function...
diffstat:
external/mit/xorg-server.old/dist/hw/xfree86/ramdac/xf86Cursor.c | 24 ++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diffs (31 lines):
diff -r f05b44553801 -r c7e79f864518 external/mit/xorg-server.old/dist/hw/xfree86/ramdac/xf86Cursor.c
--- a/external/mit/xorg-server.old/dist/hw/xfree86/ramdac/xf86Cursor.c Wed Jan 02 02:55:40 2019 +0000
+++ b/external/mit/xorg-server.old/dist/hw/xfree86/ramdac/xf86Cursor.c Wed Jan 02 02:56:43 2019 +0000
@@ -475,3 +475,27 @@
(*ScreenPriv->spriteFuncs->DeviceCursorCleanup)(pDev, pScreen);
}
+
+/* Re-set the current cursor. This will switch between hardware and software
+ * cursor depending on whether hardware cursor is currently supported
+ * according to the driver.
+ */
+void
+xf86CursorResetCursor(ScreenPtr pScreen)
+{
+ xf86CursorScreenPtr ScreenPriv;
+
+ if (!inputInfo.pointer)
+ return;
+
+ if (!dixPrivateKeyRegistered(xf86CursorScreenKey))
+ return;
+
+ ScreenPriv = (xf86CursorScreenPtr) dixLookupPrivate(&pScreen->devPrivates,
+ xf86CursorScreenKey);
+ if (!ScreenPriv)
+ return;
+
+ xf86CursorSetCursor(inputInfo.pointer, pScreen, ScreenPriv->CurrentCursor,
+ ScreenPriv->x, ScreenPriv->y);
+}
Home |
Main Index |
Thread Index |
Old Index