mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 17:12:36 +00:00
vo_tct: add resize capability
No performance penalty added by getting the terminal size every frame.
This commit is contained in:
parent
91b6757875
commit
f3a2275c24
@ -273,6 +273,13 @@ static void draw_image(struct vo *vo, mp_image_t *mpi)
|
||||
static void flip_page(struct vo *vo)
|
||||
{
|
||||
struct priv *p = vo->priv;
|
||||
|
||||
int width, height;
|
||||
get_win_size(vo, &width, &height);
|
||||
|
||||
if (vo->dwidth != width || vo->dheight != height)
|
||||
reconfig(vo, vo->params);
|
||||
|
||||
if (p->opts->algo == ALGO_PLAIN) {
|
||||
write_plain(
|
||||
vo->dwidth, vo->dheight, p->swidth, p->sheight,
|
||||
|
Loading…
Reference in New Issue
Block a user