diff options
author | Darkvater <Darkvater@openttd.org> | 2006-11-15 19:35:52 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-11-15 19:35:52 +0000 |
commit | eaddac35be5668286e394644fffafa77feea0410 (patch) | |
tree | a33f8b2226bf03932b173095e369e476546d58ad /video/sdl_v.c | |
parent | 791d20a0112b2e8927331725c1657901288182b8 (diff) | |
download | openttd-eaddac35be5668286e394644fffafa77feea0410.tar.xz |
(svn r7153) -Fix [FS#279]: Some keyboard events possibly lost under high CPU load, handle
keyboard input in place instead of global variables magic. (KUDr)
Diffstat (limited to 'video/sdl_v.c')
-rw-r--r-- | video/sdl_v.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/sdl_v.c b/video/sdl_v.c index d9ddc6219..b0630b27d 100644 --- a/video/sdl_v.c +++ b/video/sdl_v.c @@ -380,9 +380,8 @@ static int PollEvent(void) (ev.key.keysym.sym == SDLK_RETURN || ev.key.keysym.sym == SDLK_f)) { ToggleFullScreen(!_fullscreen); } else { - _pressed_key = ConvertSdlKeyIntoMy(&ev.key.keysym); + HandleKeypress(ConvertSdlKeyIntoMy(&ev.key.keysym)); } - break; case SDL_VIDEORESIZE: { |