From f3a2275c24db3b2204ceda93fa37bd59790e7701 Mon Sep 17 00:00:00 2001 From: Cloud11665 Date: Tue, 17 Aug 2021 19:49:23 +0200 Subject: vo_tct: add resize capability No performance penalty added by getting the terminal size every frame. --- video/out/vo_tct.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/video/out/vo_tct.c b/video/out/vo_tct.c index ec30958ddd..ac224b9397 100644 --- a/video/out/vo_tct.c +++ b/video/out/vo_tct.c @@ -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, -- cgit v1.2.3