aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/SetPntMap.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2016-07-29 00:44:38 +0200
committerUlrich Sibiller <uli42@gmx.de>2016-10-10 22:52:29 +0200
commit687d44b6eaa3c64a12af9bbd557b401419b208eb (patch)
tree55c30ba6b0ae6a2618395fae92922ea4402d52f6 /nx-X11/lib/X11/SetPntMap.c
parentea24f0b0eb7b82ad879810c8e84292d6bf810bea (diff)
downloadnx-libs-687d44b6eaa3c64a12af9bbd557b401419b208eb.tar.gz
nx-libs-687d44b6eaa3c64a12af9bbd557b401419b208eb.tar.bz2
nx-libs-687d44b6eaa3c64a12af9bbd557b401419b208eb.zip
update src files *[ch] to libX11 1.3.4
Diffstat (limited to 'nx-X11/lib/X11/SetPntMap.c')
-rw-r--r--nx-X11/lib/X11/SetPntMap.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/nx-X11/lib/X11/SetPntMap.c b/nx-X11/lib/X11/SetPntMap.c
index 138b788a5..45571ada0 100644
--- a/nx-X11/lib/X11/SetPntMap.c
+++ b/nx-X11/lib/X11/SetPntMap.c
@@ -44,7 +44,7 @@ XSetPointerMapping (
req->nElts = nmaps;
req->length += (nmaps + 3)>>2;
Data (dpy, (char *)map, (long) nmaps);
- if (_XReply (dpy, (xReply *)&rep, 0, xFalse) == 0)
+ if (_XReply (dpy, (xReply *)&rep, 0, xFalse) == 0)
rep.success = MappingSuccess;
UnlockDisplay(dpy);
SyncHandle();
@@ -52,14 +52,13 @@ XSetPointerMapping (
}
int
-XChangeKeyboardMapping (dpy, first_keycode, keysyms_per_keycode,
- keysyms, nkeycodes)
- register Display *dpy;
- int first_keycode;
- int keysyms_per_keycode;
- KeySym *keysyms;
- int nkeycodes;
- {
+XChangeKeyboardMapping (
+ register Display *dpy,
+ int first_keycode,
+ int keysyms_per_keycode,
+ KeySym *keysyms,
+ int nkeycodes)
+{
register long nbytes;
register xChangeKeyboardMappingReq *req;
@@ -68,7 +67,6 @@ XChangeKeyboardMapping (dpy, first_keycode, keysyms_per_keycode,
req->firstKeyCode = first_keycode;
req->keyCodes = nkeycodes;
req->keySymsPerKeyCode = keysyms_per_keycode;
- req->firstKeyCode = first_keycode;
req->length += nkeycodes * keysyms_per_keycode;
nbytes = keysyms_per_keycode * nkeycodes * 4;
Data32 (dpy, (long *)keysyms, nbytes);
@@ -76,4 +74,3 @@ XChangeKeyboardMapping (dpy, first_keycode, keysyms_per_keycode,
SyncHandle();
return 0;
}
-