mirror of https://github.com/mpv-player/mpv
video/out: remove VO_EVENT_REINIT
It was once used for vo_sdl (the old one based on SDL 1.2), since SDL apparently lost the GL state when switching to fullscreen. The new vo_sdl (using SDL 1.3) doesn't use or need this. It's dead code, so get rid of it.
This commit is contained in:
parent
0c07e82136
commit
152a2024cf
|
@ -32,7 +32,6 @@
|
|||
#define VO_EVENT_EXPOSE 1
|
||||
#define VO_EVENT_RESIZE 2
|
||||
#define VO_EVENT_KEYPRESS 4
|
||||
#define VO_EVENT_REINIT 8
|
||||
#define VO_EVENT_MOVE 16
|
||||
|
||||
enum mp_voctrl {
|
||||
|
|
|
@ -1672,12 +1672,6 @@ static void check_events(struct vo *vo)
|
|||
struct gl_priv *p = vo->priv;
|
||||
|
||||
int e = p->glctx->check_events(vo);
|
||||
if (e & VO_EVENT_REINIT) {
|
||||
uninit_gl(p);
|
||||
init_gl(p);
|
||||
init_video(p);
|
||||
resize(p);
|
||||
}
|
||||
if (e & VO_EVENT_RESIZE)
|
||||
resize(p);
|
||||
if (e & VO_EVENT_EXPOSE)
|
||||
|
|
|
@ -1771,10 +1771,6 @@ static void check_events(struct vo *vo)
|
|||
struct gl_priv *p = vo->priv;
|
||||
|
||||
int e = p->glctx->check_events(vo);
|
||||
if (e & VO_EVENT_REINIT) {
|
||||
uninitGl(vo);
|
||||
initGl(vo, vo->dwidth, vo->dheight);
|
||||
}
|
||||
if (e & VO_EVENT_RESIZE)
|
||||
resize(vo, vo->dwidth, vo->dheight);
|
||||
if (e & VO_EVENT_EXPOSE)
|
||||
|
|
Loading…
Reference in New Issue