mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 13:14:36 +00:00
Simplify EOSD code by rendering it in VOCTRL_DRAW_EOSD instead of genEOSD,
just like vo_vdpau. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28843 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
eb761e688f
commit
175cfc985c
@ -301,7 +301,7 @@ static void genEOSD(mp_eosd_images_t *imgs) {
|
||||
ass_image_t *i;
|
||||
|
||||
if (imgs->changed == 0) // there are elements, but they are unchanged
|
||||
goto call_render;
|
||||
return;
|
||||
if (img && imgs->changed == 1) // there are elements, but they just moved
|
||||
goto skip_upload;
|
||||
|
||||
@ -386,8 +386,6 @@ skip_upload:
|
||||
}
|
||||
glEndList();
|
||||
BindTexture(gl_target, 0);
|
||||
call_render:
|
||||
if (vo_doublebuffering) do_render_osd(2);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1118,6 +1116,7 @@ static int control(uint32_t request, void *data, ...)
|
||||
if (!data)
|
||||
return VO_FALSE;
|
||||
genEOSD(data);
|
||||
if (vo_doublebuffering) do_render_osd(2);
|
||||
return VO_TRUE;
|
||||
case VOCTRL_GET_EOSD_RES:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user