diff options
author | wm4 <wm4@nowhere> | 2014-09-09 19:20:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-10 00:48:12 +0200 |
commit | d0b525121af63cc8cf19f2207a5ef384c78e61f6 (patch) | |
tree | edaededb843595ffe9a61dc8514055aff64c82b1 /osdep | |
parent | 670f965f1acef64069821df38edad1e64c289075 (diff) | |
download | mpv-d0b525121af63cc8cf19f2207a5ef384c78e61f6.tar.bz2 mpv-d0b525121af63cc8cf19f2207a5ef384c78e61f6.tar.xz |
terminal-win: minor simplification
Code should be equivalent.
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/terminal-win.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/osdep/terminal-win.c b/osdep/terminal-win.c index def8cd6569..20077abc7e 100644 --- a/osdep/terminal-win.c +++ b/osdep/terminal-win.c @@ -78,7 +78,7 @@ static void read_input(void) /*check if there are input events*/ if (!GetNumberOfConsoleInputEvents(in, &retval)) return; - if (retval <= 0) + if (!retval) return; /*read all events*/ @@ -102,7 +102,7 @@ static void read_input(void) mp_input_put_key(input_ctx, mpkey); } else { /*only characters should be remaining*/ - int c = eventbuffer[i].Event.KeyEvent.uChar.UnicodeChar; + int c = record->uChar.UnicodeChar; if (c > 0) mp_input_put_key(input_ctx, c); } |