1
0
mirror of https://github.com/jojo61/vdr-plugin-softhdcuvid.git synced 2023-10-10 13:37:41 +02:00

Fix OSD for skindesigner

This commit is contained in:
jojo61 2019-10-12 11:14:51 +02:00
parent 6d91af9d74
commit e09d5a8001

View File

@ -4095,7 +4095,8 @@ static void CuvidDisplayFrame(void)
glEnable(GL_BLEND); glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glViewport(0, 0, VideoWindowWidth,VideoWindowHeight);
GlxCheck();
if (gl_prog_osd == 0) if (gl_prog_osd == 0)
gl_prog_osd = sc_generate_osd(gl_prog_osd); // generate shader programm gl_prog_osd = sc_generate_osd(gl_prog_osd); // generate shader programm
@ -6324,6 +6325,9 @@ void VideoSetVideoMode( __attribute__ ((unused))
VideoThreadLock(); VideoThreadLock();
VideoWindowWidth = width; VideoWindowWidth = width;
VideoWindowHeight = height; VideoWindowHeight = height;
#ifdef PLACEBO
VideoSetOsdSize(width,height);
#endif
VideoUsedModule->SetVideoMode(); VideoUsedModule->SetVideoMode();
VideoThreadUnlock(); VideoThreadUnlock();