mirror of
https://github.com/mpv-player/mpv
synced 2024-11-11 00:15:33 +01:00
getch2, mplayer: Always call load_termcap
getch2 now deals with the cases where we don't have termcap. Add a dummy load_termcap to getch2-win so we don't get linking errors on mingw.
This commit is contained in:
parent
19b1279bb3
commit
5586b02931
@ -4586,9 +4586,7 @@ static void osdep_preinit(int *p_argc, char ***p_argv)
|
||||
SetErrorMode(0x8003);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_TERMCAP
|
||||
load_termcap(NULL); // load key-codes
|
||||
#endif
|
||||
|
||||
mp_time_init();
|
||||
}
|
||||
|
@ -64,6 +64,11 @@ void get_screen_size(void)
|
||||
}
|
||||
}
|
||||
|
||||
int load_termcap(char *termtype)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static HANDLE in;
|
||||
static int getch2_status = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user