From 4945034792b28d1a222a615404bfceaf48a130c5 Mon Sep 17 00:00:00 2001 From: Alexander Gottwald Date: Mon, 6 Dec 2004 12:26:50 +0000 Subject: [PATCH] problem with max() macro. this one slipped though again --- hw/xwin/winconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }