summaryrefslogtreecommitdiff
path: root/hw/xwin
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-12-06 12:26:50 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-12-06 12:26:50 +0000
commit4945034792b28d1a222a615404bfceaf48a130c5 (patch)
treee62274454af406d02b1d295929cc3c02b8ba54f1 /hw/xwin
parent531776becf95f66e6e435aad0dc21ead436ff5aa (diff)
problem with max() macro. this one slipped though again
Diffstat (limited to 'hw/xwin')
-rw-r--r--hw/xwin/winconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xwin/winconfig.c b/hw/xwin/winconfig.c
index 40d8bd0a6..d35cfedd4 100644
--- a/hw/xwin/winconfig.c
+++ b/hw/xwin/winconfig.c
@@ -311,7 +311,7 @@ winConfigKeyboard (DeviceIntPtr pDevice)
default:
case 3: g_winInfo.keyboard.delay = 1000; break;
}
- g_winInfo.keyboard.rate = max(1,kbd_speed);
+ g_winInfo.keyboard.rate = (kbd_speed>0)?kbd_speed:1;
winMsgVerb(X_PROBED, 1, "Setting autorepeat to delay=%d, rate=%d\n",
g_winInfo.keyboard.delay, g_winInfo.keyboard.rate);
}