mirror of https://github.com/mpv-player/mpv
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);
|
SetErrorMode(0x8003);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_TERMCAP
|
|
||||||
load_termcap(NULL); // load key-codes
|
load_termcap(NULL); // load key-codes
|
||||||
#endif
|
|
||||||
|
|
||||||
mp_time_init();
|
mp_time_init();
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,6 +64,11 @@ void get_screen_size(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int load_termcap(char *termtype)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static HANDLE in;
|
static HANDLE in;
|
||||||
static int getch2_status = 0;
|
static int getch2_status = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue