hedgewars/uChat.pas
changeset 9317 a04c30940d2d
parent 9311 5baf10a52f43
child 9319 492a0ad67e33
--- a/hedgewars/uChat.pas	Thu Jul 04 11:58:40 2013 +0200
+++ b/hedgewars/uChat.pas	Sat Jul 06 19:29:18 2013 +0200
@@ -298,7 +298,9 @@
 begin
     FreezeEnterKey;
     history:= 0;
+{$IFNDEF SDL2}
     SDL_EnableKeyRepeat(0,0);
+{$ENDIF}
     GameState:= gsGame;
     ResetKbd;
 end;
@@ -421,7 +423,9 @@
 begin
     s:= s; // avoid compiler hint
     GameState:= gsChat;
+{$IFNDEF SDL2}
     SDL_EnableKeyRepeat(200,45);
+{$ENDIF}
     if length(s) = 0 then
         SetLine(InputStr, '', true)
     else