diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-06-21 11:39:03 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-06-22 11:30:54 +0200 |
commit | 364035c00258c17924174dac7921b5a8e68e6459 (patch) | |
tree | 84fbc273812bf82a5fcd20547b9965a24fc17098 /nx-X11/programs/Xserver | |
parent | 2bb498a4c767b7d12db84e59b77020bcd70a057c (diff) | |
download | nx-libs-364035c00258c17924174dac7921b5a8e68e6459.tar.gz nx-libs-364035c00258c17924174dac7921b5a8e68e6459.tar.bz2 nx-libs-364035c00258c17924174dac7921b5a8e68e6459.zip |
Keyboard.c: use existing define instead of hardcoced value
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c index 8ff4528a1..4952c0197 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c @@ -553,7 +553,7 @@ void nxagentChangeKeyboardControl(DeviceIntPtr pDev, KeybdCtrl *ctrl) value_mask = KBLed | KBLedMode; - for (int i = 1; i <= 32; i++) + for (int i = 1; i <= XkbNumIndicators; i++) { unsigned int mask = (unsigned int)1 << (i - 1); values.led = i; |