From e09d5a80014edee30eadf7b910a598b1056f551b Mon Sep 17 00:00:00 2001 From: jojo61 Date: Sat, 12 Oct 2019 11:14:51 +0200 Subject: [PATCH] Fix OSD for skindesigner --- video.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/video.c b/video.c index d45d748..af5e369 100644 --- a/video.c +++ b/video.c @@ -4095,7 +4095,8 @@ static void CuvidDisplayFrame(void) glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - + glViewport(0, 0, VideoWindowWidth,VideoWindowHeight); + GlxCheck(); if (gl_prog_osd == 0) gl_prog_osd = sc_generate_osd(gl_prog_osd); // generate shader programm @@ -6324,6 +6325,9 @@ void VideoSetVideoMode( __attribute__ ((unused)) VideoThreadLock(); VideoWindowWidth = width; VideoWindowHeight = height; +#ifdef PLACEBO + VideoSetOsdSize(width,height); +#endif VideoUsedModule->SetVideoMode(); VideoThreadUnlock();